Hi,
New here and trying to solve a simple problem but getting stuck. If I input 10 separate integers, I would like the program to revers them for the output.
Problem I'm having is at present this simple program will inly output 4 or 5 integers.
Any ideas how to solve??
Program so far:
Code:
#include <stdio.h>
int main()
{
char a, b, c, d, e, f, g, h, i, j;
printf("Integars in reverse order\n");
printf("Input 10 integers: ");
scanf("%c%c%c%c%c%c%c%c%c%c", &a, &b, &c, &d, &e, &f, &g, &h, &i, &j);
printf("In reverse: %c%c%c%c%c%c%c%c%c%c", j, i, h, g, f, e, d, c, b, a);
return 0;
}