I want to make a code to Print the inputs in reverse order.
If I put integer input
6
20
14
5
I want to read the data not using array just method
like 5 14 20 6, not 5 41 02 6.
what should I do next? Please help me.
#include <stdio.h>
int main(void)
{
int reverResult;
int num;
int i;
int recurnum=0;
printf("Test PrintReverse\n");
printf("Number Please\n");
scanf("%d",&recurnum);
printf("%d is the number of recursion\n", recurnum);
for(i=1 ; i<=recurnum ; i++)
{
scanf("%d\n",&num);
printf("%d\n", num);
}
}