We help IT Professionals succeed at work.

help

tsburt
tsburt asked
on
199 Views
Last Modified: 2010-04-15
need a program taht does these
thanks guys


have 3 user defined routines: sqrnum, readnum, prompt
Ï prompt: will print the prompt Enter a number
Ï readnum: will input a decimal integer from the user
Ï sqrnum: will square the number and print the square of the number as a result
Ï the main function will contain a for loop to:
Ë request input by calling prompt
Ë obtain input by calling readnum
Ë if the number is not zero, it will print the result by calling sqrnum
Ë the program will terminate when zero is entered
Run the program and input 3 different numbers. Then enter zero to exit the program.
Comment
Watch Question

Author

Commented:
i don't know how to start this one...........any main points here?
CEO/Programmer
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.