Hello.. I wanted to know how can you reverse digits in "C" ? I am a Student of computer sciences and we are told about the "If" statements and the "Switch" statements and functions etc.. here's a small code
ok after that I want something which will reverse the digits.. for example if a user inputs "2345" it should be reversed to "5432" in the output..Code:void main()
{
printf("Enter 4 digits");
scanf("%d%d%d%d", &a,&b,&c,&d);
many told me that it's not possible without loops and blah blah but how can they give us a assigment on something which they never taught us? so i'm sure there's a way.. please do not tell me exactly how to do it as i want to do it myself just give me a rough idea/hint .. thanks
- DiGiTal ThouGhT!