Skip to content

Commit 4e7baa9

Browse files
committed
4th problem solve
1 parent c4f4994 commit 4e7baa9

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

a.out

0 Bytes
Binary file not shown.

solve_problem.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,23 +97,23 @@
9797

9898
// 👉👉 🔹 Q-4: একটি ফাংশন লিখো যা একটি পূর্ণসংখ্যা ইনপুট নিয়ে তার স্কয়ার রিটার্ন করবে।
9999

100+
101+
100102
#include <stdio.h>
101-
int square_f(int n);
103+
int square (int n);
102104
int main(){
105+
int num = 40;
106+
int result = square(num);
107+
printf("Square Reult is : %d\n ", result);
103108

104-
int n = 5;
105-
int result = square_f(n);
106-
printf("Suare number is : %d\n", result) ;
107-
return 0 ;
109+
return 0;
108110
}
109111

110-
int square_f(int n ){
111-
return n* n;
112+
int square(int n ) {
113+
return n*n ;
112114
}
113115

114116

115-
116-
117117
// #include <stdio.h>
118118
// int main(){
119119

0 commit comments

Comments
 (0)