C > Code Snippets
Cosine example
Cosine example #include
#include
int main() { printf("The cosine of %f is %f.\n",0.5,cos(0.5)); printf("The cosine of %f is %f.\n",1.0,cos(1.0)); printf("The cosine of %f is %f.\n",-1.0,cos(-1.0)); return 0; }
C Codes
Beginners
C on Unix
Code Snippets
Data Structures
File Operations
Games Graphics
Gnu-Linux
Hardware
Mathematics
Miscellaneous
Small Programs
Sorting