I have an assignment to write a program in C that does the following:
Write a C program that will accept a 3-digit positive integer 0 to 999.
The program will determine that it is a valid number in this range and
terminate if not. If valid, the program will compute the square of the
number. Then the program will reverse the digits of the number so that 395 become 593 and 37 becomes 73. Print out the number, the square and the reversed digit number. Example: if 250 is entered, then it will print: 250, 62500, and 052.
I'm not that good with C, so any suggestions would help
Write a C program that will accept a 3-digit positive integer 0 to 999.
The program will determine that it is a valid number in this range and
terminate if not. If valid, the program will compute the square of the
number. Then the program will reverse the digits of the number so that 395 become 593 and 37 becomes 73. Print out the number, the square and the reversed digit number. Example: if 250 is entered, then it will print: 250, 62500, and 052.
I'm not that good with C, so any suggestions would help