Saved Bookmarks
| 1. |
If the input values of A and B are 18 and 12 then what is the output of the algorithm below ? Step 1 : Read the values of A and B Step 2: If `A ge B` then C=A-B Otherwise C=B-A Step 3: Print C Step 4: EndA. 8B. -6C. 6D. 10 |
|
Answer» Correct Answer - c A = 18 and B=12 As `AgtB` `therefore` C=A-B=6 `therefore` output =6 |
|