HI ALL,
Just got bored and decided to look into a few things.
Like, is there a easy way to reverse an integer and assign that value to another int type?
Here is a quick example of what I was thunkin! Thanks for the help IA!Code:Example: #include <stdio.h> main(){ int grab; int reverse; printf("\"Enter a five digit integer\"\n"); scanf("%d", grab); if ((grab > 00000) && (grab <=99999)){ printf("\"You have entered: %d, great!\"\n"); } else{ printf("\"To big a number!\"\n", grab); } //reverse integer and assign it into reverse getche(); } __________________________ Believing no rights are wrong, can be wrong by rights! AmpIII