Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- #include <math.h> // Lets us use trig functions
- void main()
- {
- printf( "Pi is defined as %f.\n", 4 * atan(1) );
- printf( "The area of a circle with radius 2 is %f.\n", 4 * atan(1) * 4);
- }
Advertisement
Add Comment
Please, Sign In to add comment