[ create a new paste ] login | about

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

C, pasted on Apr 21:
#include<stdio.h>
#include<conio.h>

int deQuy(int n)
{
	if(n < 10)
	{
		return n;
	}
	return deQuy(n / 10);
}

int main()
{
	int n;
	printf("\nNhap n: "); scanf("%d", &n);

	printf("\nDe quy %d chu so dau tien = %d", n, deQuy(n));
	

	getch();
	return 0;
}


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


Create a new paste based on this one


Comments: