Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- #define Pi 3.1416 //আমরা জানি Pi = 3.1416
- int main()
- {
- int x1 = 2, y1 = 2, x2 = 5, y2 = 6; // দেয়া আছে
- float radius, area;
- radius = sqrt(((x2-x1)*(x2-x1))+((y2-y1)*(y2-y1))); //রেডিয়াস এর সূত্র
- area = Pi*radius*radius; //এরিয়ার সূত্র
- printf("The area of the circle is %f\n", area);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement