Advertisement
SalehAhmed

Untitled

Sep 1st, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. #define Pi 3.1416 //আমরা জানি Pi = 3.1416
  4.  
  5. int main()
  6. {
  7. int x1 = 2, y1 = 2, x2 = 5, y2 = 6; // দেয়া আছে
  8.  
  9. float radius, area;
  10.  
  11. radius = sqrt(((x2-x1)*(x2-x1))+((y2-y1)*(y2-y1))); //রেডিয়াস এর সূত্র
  12.  
  13. area = Pi*radius*radius; //এরিয়ার সূত্র
  14.  
  15. printf("The area of the circle is %f\n", area);
  16.  
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement