View Single Post
Old 11-29-2004, 05:25 PM   #1 (permalink)
cloud
cloud's Avatar
 
Super Techie

Join Date: Nov 2004

Posts: 406

cloud is on a distinguished road

Talking C program, I need help :)

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
__________________
antec nine hundred
abit IP35 pro
Q6600 @ 3.3ghz
Evga 8800GTX
4GB Corsair XMS 800
150gb WD 10k
300gb seagate 7.2k
22" Samsung 5ms lcd
21" Sceptre lcd
cloud is offline