Computer Science, asked by rishabhkalanoria1712, 3 months ago

Write a BASIC program that will accept any three numbers from the user and print their
sum and average.​

Answers

Answered by peddiniharika939
0

Explanation:

10 input x, y, z

20 sum = x + y + z

30 average = sum / 3.0

40 print average

For this you would just see a question mark to input the 3 numbers.

Generally in most BASICs you could do this instead:

10 input “Enter 3 numbers separated by spaces : “; x, y, z

Then you get a nice prompt for the input.

Similar questions