Problem Analysis:
The problem is to print the given integers in both forward and the reverse orders.
Algorithm:
1.start
2.Input the integer by user.
i.e. int a,b,c;
3. print the given values in forward and reverse order.
4.End.
Flowcharts:
fig: Flowchart to print the variables in forward and reverse order.
Codes:
Outputs:
Compilings, Debuggings and Testings.
Enter a . b .c; 5 8 9
the forward order : 5 8 9
the reverse order: 9 8 5