File: expect-1

package info (click to toggle)
git 1%3A1.7.2.5-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 18,036 kB
  • ctags: 13,298
  • sloc: ansic: 108,217; sh: 74,973; perl: 23,370; tcl: 20,137; python: 3,843; makefile: 2,885; lisp: 1,779; asm: 98
file content (31 lines) | stat: -rw-r--r-- 333 bytes parent folder | download | duplicates (24)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <stdlib.h>
#include <stdio.h>

int func(int num);
void print_int(int num);
void print_ln();

int main() {
	int i;

	for (i = 0; i < 10; i++) {
		print_int(func(i));
	}

	print_ln();

	return 0;
}

int func(int num) {
	return num * num;
}

void print_int(int num) {
	printf("%d", num);
}

void print_ln() {
	printf("\n");
}