Skip to content

Commit 3865d6e

Browse files
committed
looping fun
1 parent a8d137d commit 3865d6e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

prog.8.3.c

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include <stdio.h>
2+
3+
void printMessage (void)
4+
{
5+
printf ("Programming is fun.\n");
6+
}
7+
8+
int main (void)
9+
{
10+
int i;
11+
12+
for ( i = 1; i <= 5; ++i )
13+
printMessage ();
14+
15+
return 0;
16+
}

0 commit comments

Comments
 (0)