Skip to content

Commit eba128d

Browse files
committed
git! what the damn hell?
1 parent 03cb215 commit eba128d

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

01.BaseProgrammer.c

+16-15
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
/// It took a long time to come up with this solution.
2-
/// You made several mistakes at the beginning. But now,
3-
/// you are proud of your code.
1+
/// Though you knew how prime number worked, it took a long time
2+
/// to come up with this logic. Also, You made several mistakes
3+
/// on the way. And now, you are proud of your brilliant solution.
44

5-
int func (int a)
6-
{
5+
int func(int a)
6+
{
77
int x,i,r;
8-
x=0;
9-
i=0;
10-
for (i=1; i<=a; i=i+1)
11-
{
12-
if (a%i==0)
13-
x=x+1;
8+
x = 0 ;
9+
i = 0 ;
10+
for(i=1; i<=a ; i=i+1 )
11+
{
12+
if (a%i == 0)
13+
{x=x+1 ;}
1414
}
15-
if (x==2)
16-
r=1;
15+
if( x == 2)
16+
{r = 1;}
1717
else
18-
r=0;
19-
return r;
18+
{r = 0;}
19+
return r ;
20+
2021
}

0 commit comments

Comments
 (0)