Skip to content

Commit 3dcbd2f

Browse files
committed
测试程序
1 parent 07591ce commit 3dcbd2f

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

test.txt

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
int a;
2+
int b;
3+
int program(int a,int b,int c)
4+
{
5+
int i;
6+
int j;
7+
i=0;
8+
if(a>(b+c))
9+
{
10+
j=a+(b*c+1);
11+
}
12+
else
13+
{
14+
j=a;
15+
}
16+
while(i<=100)
17+
{
18+
i=j*2;
19+
j=i;
20+
}
21+
return i;
22+
}
23+
24+
int demo(int a)
25+
{
26+
a=a+2;
27+
return a*2;
28+
}
29+
30+
void main(void)
31+
{
32+
int a;
33+
int b;
34+
int c;
35+
a=3;
36+
b=4;
37+
c=2;
38+
a=program(a,b,demo(c));
39+
return;
40+
}
41+
#

0 commit comments

Comments
 (0)