Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main (void)
- { float w,b,y;
- int n;
- printf ("Sinustabelle:\n");
- for (w = 0; w<=360;w += 5)
- { b = (w/360)*2*M_PI;
- y = sin(b);
- n = 25 + (int)(25*y + 0.5);
- printf ("%5.1f = %5.3f sin: %+5.3f",w,b,y);
- for (int z = 0; z <= n; z++) printf (" ");
- printf ("*\n");
- }
- }
Add Comment
Please, Sign In to add comment