File tree Expand file tree Collapse file tree 1 file changed +28
-16
lines changed Expand file tree Collapse file tree 1 file changed +28
-16
lines changed Original file line number Diff line number Diff line change 60
60
// }
61
61
62
62
63
-
64
-
65
-
66
-
67
- // ============================================================
68
- // 📌 Practice Problems
69
- // Topic : C Programming - Functions
70
- // Level : 1 – Basic Function Problems
71
- // ============================================================
72
-
73
- // 👉👉 🔹 Q-4: একটি ফাংশন লিখো যা একটি পূর্ণসংখ্যা ইনপুট নিয়ে তার স্কয়ার রিটার্ন করবে।
74
-
75
-
76
-
77
-
78
-
79
63
// #include <stdio.h>
80
64
// #include <math.h>
81
65
105
89
106
90
107
91
92
+ // ============================================================
93
+ // 📌 Practice Problems
94
+ // Topic : C Programming - Functions
95
+ // Level : 1 – Basic Function Problems
96
+ // ============================================================
97
+
98
+ // 👉👉 🔹 Q-4: একটি ফাংশন লিখো যা একটি পূর্ণসংখ্যা ইনপুট নিয়ে তার স্কয়ার রিটার্ন করবে।
99
+
100
+ #include <stdio.h>
101
+
102
+ int square_f (int n ) ;
103
+
104
+ int main (){
105
+ int n = 5 ;
106
+ int result = square_f (n ) ;
107
+ printf ("square number is : %d" , n );
108
+
109
+ return 0 ;
110
+ }
111
+
112
+ int square_f (int n ){
113
+ return n * n ;
114
+ }
115
+
116
+
117
+
118
+
119
+
108
120
// #include <stdio.h>
109
121
// int main(){
110
122
You can’t perform that action at this time.
0 commit comments