/* Write a C program that reads three-digit positive integer number. The program separates the input number into it's individual digits and prints the digits on separate lines. For example if the input number was 236 the program will print 2 3 6 */ #include int main(){ int num,d_last, d_middle, d_first; printf("enter 3-digit positive integer\n"); scanf("%d", &num); d_last=num%10; num=num/10; d_middle=num%10; num=num/10; d_first=num%10; printf("the digits are\n%d\n%d\n%d\n",d_first,d_middle,d_last); return 0; }