Questions: Given an integer number , write a program that displays the number as follows:
first line:
all digits
second line:
all except first digit
third line;
.....
last line:
the last digit
Example: the number is 7654
result will be as;
7654
765
76
7
#include
main()
{
int a,b,c,d,e;
printf("input a=");
scanf("%d",&a);
getchar();
printf("%d\n",a);
if(a>=10000)
b=a%10000;
c=a%1000;
d=a%100;
e=a%10;
printf("%d\n%d\n%d\n%d\n",b,c,d,e);
getchar();
if(1000int main(){ int x,temp,i,j,k; int top[100]; while(scanf("%d",&x)!=EOF) {i=0;while(1){ if(x==0) {
break; } top=x%10; x=x/10; i++;}for(k=0;k=k;j--)
{ printf(
|