Skip to content

Commit 7097f20

Browse files
committed
Somewhere I have heard this word 'git'... Cannot remember :(
1 parent eba128d commit 7097f20

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

02.ProgrammerKaioken4.c

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/// You have learned to use flag, and think
2-
/// that- it is the coolest.
2+
/// that- it is the coolest. Also, indentation
3+
/// is super important!
34

4-
int func_pri_num(int a){
5-
int i, f = 0;
6-
for (i = 2; i < a; i++)
5+
int pri_num(int a) {
6+
int i = 0, f = 0;
7+
for (i = 2; i < a; i ++)
78
if (a % i == 0) f = 1;
8-
9+
910
if (f == 0) return 1;
1011
else return 0;
1112
}

0 commit comments

Comments
 (0)