MCiLuZiioNz

Untitled

Jun 2nd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <math.h> // Lets us use trig functions
  4.  
  5. void main()
  6. {
  7.     printf( "Pi is defined as %f.\n", 4 * atan(1) );
  8.     printf( "The area of a circle with radius 2 is %f.\n", 4 * atan(1) * 4);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment