Computer Science, asked by rishikeshsingh123457, 1 month ago

write a program to accept any three integer number and return the sum of these numbers (by using function) ​

Answers

Answered by mufiahmotors
1

Answer:

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.

Explanation:

ask ur doubt also

Similar questions