Skip to content

Commit c4f4994

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

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

a.out

-72 Bytes
Binary file not shown.

solve_problem.c

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -98,21 +98,18 @@
9898
// 👉👉 🔹 Q-4: একটি ফাংশন লিখো যা একটি পূর্ণসংখ্যা ইনপুট নিয়ে তার স্কয়ার রিটার্ন করবে।
9999

100100
#include <stdio.h>
101-
102-
int square_f(int n ) ;
103-
101+
int square_f(int n);
104102
int main(){
105-
int n = 5;
106-
int result = square_f(n) ;
107-
printf("square number is : %d", n);
108-
109-
return 0 ;
110-
}
111103

112-
int square_f(int n){
113-
return n * n ;
104+
int n = 5;
105+
int result = square_f(n);
106+
printf("Suare number is : %d\n", result) ;
107+
return 0 ;
114108
}
115109

110+
int square_f(int n ){
111+
return n* n;
112+
}
116113

117114

118115

0 commit comments

Comments
 (0)