Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Calcular sin(x) com x indo de 0 a 90 graus de 5 em 5 graus, num intervalo correspondente a 1/4 de periodo.
- #include <stdio.h>
- #include <math.h>
- #define pi M_PI
- int main(void)
- {
- int x;
- for (x+0; x<=90; x+=5)
- printf("%d\t %lf\n",x,sin(x*pi/180));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement