wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Find the output of the program given below
10 REM Average of ten numbers
20 READ n1,n2,n3,n4............n10
30 DATA 2, 4, 14, 8, 22, 32, 44, 58, 74, 92
40 Let Average =
(n1+n2+n3+n4+n5+n6+n7+n8+n9+n10)/10
50 PRINT "Average = "; Average
60 END

A
Average = 30
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Average = 35
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Average = 38
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Average = 42
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B Average = 35
The given program basically prints the average of the given 10 numbers 2,4,14,8,22,32,44,58,74,92
So, Average =2+4+14+8+22+32+44+58+74+9210=35010=35
So the final output is Average=35

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Mean and Median of Ungrouped Data
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon