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))

31st Mar 2023, 9:18 PM
13alb
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.
31st Mar 2023, 11:00 PM
Emerson Prado
Emerson Prado - avatar
+ 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.
2nd Apr 2023, 4:19 PM
Benjamin Davis
Benjamin Davis - avatar