0
Can anyone help me please ?
I need to write a program that inputs three different integers from the keyboard, then prints the sum, the average, the product, the smallest and the larg- est of these numbers((if statement))
2 Answers
+ 1
Sure.
Study the functions for formatted input and output, variable declaration and attribution, and arithmetic operations.
If you have any difficulties, just edit your question and link your code attempt from Code Playground into the question description, along, of course, an explanation of such difficulties.
+ 1
Write out your needs in sudocode like this...
//Get user input
Get user input a
Get user input b
Get user input c
//Get the sum
sum = a + b + c
//Get the average
average = sum / 3
//Find the largest function
Do some loop iteration
Find the largest of a, b, and c
//Find the smallest function
Do some loop iteration
Find the smallest of a, b, and c
//Print results.
Print the results sum, average, largest and smallest here.