Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- int main(int argc, char *argv[])
- {
- if(argc != 2)
- exit(1);
- double c, s, t;
- c = cos(atoi(argv[1]));
- s = sin(atoi(argv[1]));
- t = tan(atoi(argv[1]));
- printf("cos: %f\nsin: %f\ntan: %f", c, s, t);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement