Computer Science, asked by navneetvinod1512, 6 months ago

Write a program to input a three digit number and display all the digits by using arthimetical operators.
Sample Input :472
Sample out put:4
7
2

Answers

Answered by aafridah
6

Explanation:

main()

{

int a,num;

printf("enter number");

scanf("%d", &num);

while(num>0)

{

a=num/100;

printf("%d\n",a);

num=num%100;

}

}

Similar questions