Write a BASIC program that will accept any three numbers from the user and print their
sum and average.
Answers
Answered by
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
History,
2 months ago
Science,
2 months ago
Computer Science,
4 months ago
Math,
4 months ago
Computer Science,
11 months ago
Chemistry,
11 months ago
Math,
11 months ago