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
English,
1 month ago
Social Sciences,
1 month ago
Computer Science,
3 months ago
Math,
3 months ago
Computer Science,
9 months ago
Chemistry,
9 months ago
Math,
9 months ago