We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7dc1d9 commit 0e11badCopy full SHA for 0e11bad
a.out
56 Bytes
solve_problem.c
@@ -59,15 +59,34 @@
59
// return 0;
60
// }
61
62
-// 👉👉 🔹Qu -3 🔹
+// 👉👉 🔹Qu -3 🔹 write a fuction calculate area of a square , a circle & a rectangel
63
64
#include <stdio.h>
65
-int main()
66
-{
+#include <math.h>
67
+ float square_f( float side);
68
+ float circle_f(float rad);
69
+ float rectangle_f(float a , float b);
70
+int main(){
71
+
72
+ float a = 4;
73
+ float b = 4;
74
+ printf("Total Area is : %f\n" , rectangle_f(a,b));
75
return 0;
76
}
77
78
+float square_f(float side){
79
+ return side * side ;
80
+}
81
82
+float cirlce_f(float rad){
83
+ return 3.1416 * rad * rad ;
84
85
86
+float rectangle_f(float a , float b){
87
+ return a*b ;
88
89
90
// #include <stdio.h>
91
// int main(){
92
0 commit comments