Skip to content

Commit 38f1a0d

Browse files
committed
4th problem solve
1 parent 034e95f commit 38f1a0d

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed

solve_problem.c

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,22 +60,6 @@
6060
// }
6161

6262

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-
7963
// #include <stdio.h>
8064
// #include <math.h>
8165

@@ -105,6 +89,34 @@
10589

10690

10791

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+
108120
// #include <stdio.h>
109121
// int main(){
110122

0 commit comments

Comments
 (0)