trouble with homework

September 20, 2010 at 04:45:04
Specs: Windows XP
Design an algorithm that will prompt the user for two numbers, accept the two numbers as input, compute the sum, difference, product, average of the two numbers, and output the numbers , sum, difference, product, and the average of the two numbers to the terminal

See More: trouble with homework

Report •

September 20, 2010 at 05:28:57
This is not ""
I suggest you do your homework yourself.
That is how you learn programming, by doing it.

Report •

September 20, 2010 at 06:02:12
You didn't specify which language - c or c++ :P

declare two vars
prompt user for two numbers
read in the numbers
output the results

n1 + n2
n1 - n2
n1 * n2
(n1 + n2) / 2

I have no aspiration for preaching. ;-)

Report •

September 20, 2010 at 14:49:02
..... Umh .....


Do Your Self A Favor And Backup Your Computer , Remove That Junk , And Orginize your stuff :D

Report •
Related Solutions

Ask Question