CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Find the output of the program given below ifx=48
and y=60
10 READx,y
20 Letx=x/3
30 Lety=x+y+8
40 z=y4
50 PRINTz
60 End

A
21
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
22
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
23
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
24
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A 21
After the step 10 READ x,y, the value of x=48,y=60
After the step 20 Let x=x3, the value of x=483=16,y=60
After the step 30 Let y=x+y+8, the value of x=16,y=16+60+8=84
After the step 40 Let z=y4, the value of x=844=21
Hence z=21 is the final output printed.

flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Terminology
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon