Sunday, November 28, 2010

Write a C program to print Division of the given two decimal number

#include

main()
{
int div=0;
int n=0;
printf("Enter the value of n\n");
scanf("%d",&n);
while (n>0)
{
div=div/n%10;
n=n/10;
}
printf("division=%d\n",div);
}