repo.or.cz
/
git
/
jnareb-git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
remote rename: warn when refspec was not updated
[git/jnareb-git.git]
/
t
/
t4109
/
expect-1
blob
1db5ff10501497459d07e227f02764576a6010e1
1
#include <stdlib.h>
2
#include <stdio.h>
3
4
int func(int num);
5
void print_int(int num);
6
void print_ln();
7
8
int main() {
9
int i;
10
11
for (i = 0; i < 10; i++) {
12
print_int(func(i));
13
}
14
15
print_ln();
16
17
return 0;
18
}
19
20
int func(int num) {
21
return num * num;
22
}
23
24
void print_int(int num) {
25
printf("%d", num);
26
}
27
28
void print_ln() {
29
printf("\n");
30
}
31