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

Given here is an algorithm to swap two numbers. Which of the following line will replace'?" to complete the algorithm?
Step 1: Read two numbers X and Y.
Step 2: ?
Step 3: Y=XY
Step 4: X=XY

A
X=X+Y
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
X=X×Y
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
X=XY
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
X=XY
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Join BYJU'S Learning Program
CrossIcon