Here's my understanding fetching the input:
int num = 0;
NSLog (@"Input 5 numbers");
scanf("%d", &num);
NSLog (@"\n You inputted: %d !", num);
Sample Input: 54321 Output: 54321
But the output should be:
5
4
3
2
1
Here's my understanding fetching the input:
int num = 0;
NSLog (@"Input 5 numbers");
scanf("%d", &num);
NSLog (@"\n You inputted: %d !", num);
Sample Input: 54321 Output: 54321
But the output should be:
5
4
3
2
1