This program is supposed to print the sum, average, product, smallest and largest of three numbers. Please look at this and tell me where I am going wrong.
jahowell01
0
Newbie Poster
Recommended Answers
Jump to PostIt looks good 2 me that is how i will do it ;)
To print the smallest you could do is num1<num2, then is num1<num3. Or somethink like that. Sorrie i am not to sure.
Jump to Postafter looking at the code i have spotted a few mistakes, first of all you cannot re-declare variables, like when you have
int number1; int number2; ..... ... .. int number1; int number2;
you are declaring these twice, if you want to use the same variable for …
All 7 Replies
iamthwee
bops
1
Posting Whiz in Training
bops
1
Posting Whiz in Training
jahowell01
0
Newbie Poster
bops
1
Posting Whiz in Training
bops
1
Posting Whiz in Training
jahowell01
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.