#include<stdio.h>
#include<conio.h>
void main()
{
int num,rem;
clrscr();
printf("\n enter the number");
scanf("\n %d",&num);
do
{
rem=num%10;
printf("\n %d",rem);
num=num/10;
}
while(num>0);
getch();
}
#include<conio.h>
void main()
{
int num,rem;
clrscr();
printf("\n enter the number");
scanf("\n %d",&num);
do
{
rem=num%10;
printf("\n %d",rem);
num=num/10;
}
while(num>0);
getch();
}