#include<stdio.h>
#include<conio.h>
void main()
{
int a,n;
clrscr();
printf("Enter the number");
scanf("%d",&n);
while(n>0)
{
a=n%10;
a=a+1;
printf("%c\n",a);
n=n/10;
}
getch();
}
#include<conio.h>
void main()
{
int a,n;
clrscr();
printf("Enter the number");
scanf("%d",&n);
while(n>0)
{
a=n%10;
a=a+1;
printf("%c\n",a);
n=n/10;
}
getch();
}
No comments:
Post a Comment