একটি বর্গক্ষেত্রের ভিতরে আঁকা বৃত্ত যেটি বর্গের চার বাহুকে স্পর্শ করে। বৃত্তের ব্যাস = বর্গের বাহু। ক্ষেত্রফলের সূত্র: (π/4) × a² (এখানে a = বর্গের বাহু)।

কোড লজিক: ক্ষেত্রফল = (π/4) × a²। এখানে π = 3.14। এক্সপ্রেশনটি ফ্লোট ভেরিয়েবলে সংরক্ষণ করা হয়।
উদাহরণ
#include <stdio.h>
#include <math.h>
int main() {
int a = 5;
float area;
float pie = 3.14;
printf("Program to find area of circle inscribed inside a square\n");
printf("The side of the square is %d \n", a);
area = ((pie / 4) * a * a);
printf("The area of circle inscribed inside a square is %f \n", area);
return 0;
}
আউটপুট
The side of the square is 5 The area of circle inscribed inside a square is 19.625000