Hello I have a problem I want to print 3 spaces between the output given the code
Code:
#include <stdio.h>
int main (void)
{
//Local Declaration
int intNum;
int oneDigit;
int threeDigit;
int twoDigit;
//Statements
printf("Enter an integral number: ");
scanf("%d", &intNum);
oneDigit = intNum % 10;
twoDigit = intNum % 100;
threeDigit = intNum % 1000;
printf("0%d\n",intNum);
printf("%d\n",intNum);
printf("%d\n", threeDigit);
printf("%d\n", twoDigit);
printf("%d\n", oneDigit);
return 0;
}*/
//main
The out put is
Code:
01234
1234
234
34
4
The output should be
Code:
0 1 2 3 4
1 2 3 4
2 3 4
3 4
4
how can I do this?
Thank you dNNNY