[ create a new paste ] login | about

Link: http://codepad.org/Ekld0p1o    [ raw code | output | fork ]

C, pasted on Sep 11:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include<stdio.h>
#include<conio.h>

int main()
{
	for(int i = 1; i <= 10; ++i)
	{
		for(int j = 2; j <= 9; ++j)
		{
			printf("%c %d x %2d = %2d", 179, j, i, i * j);
		}
		printf("%c\n", 179);
	}

	getch();
	return 0;
}


Output:
1
2
3
4
Line 17: error: conio.h: No such file or directory
In function 'main':
Line 6: error: 'for' loop initial declaration used outside C99 mode
Line 8: error: 'for' loop initial declaration used outside C99 mode


Create a new paste based on this one


Comments: