[ create a new paste ] login | about

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

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

int main()
{
	int n;
	printf("Nhao vao mot gia tri:");
	scanf("%d",&n);

	int m= 0;
	do
	{
		m*=10 + (n%10);
		n/= 10;
	}while(n!= 0);
	
	printf("So dao la: %d",m);
	getch();
}


Output:
1
Line 17: error: conio.h: No such file or directory


Create a new paste based on this one


Comments: