A Alvin Le Member Sep 19, 2021 #1 What is the output of the following code? Code: i=0;for i=0:2 i=1; end A. Output is suppressed B. Output shows 1 3 times C. Output shows 1 2 times D. Error
What is the output of the following code? Code: i=0;for i=0:2 i=1; end A. Output is suppressed B. Output shows 1 3 times C. Output shows 1 2 times D. Error
N Nguyễn Đức Thành New member Sep 19, 2021 #2 Answer: a Explanation: The output won’t be shown since we’ve added a semi-colon after the declaration of the variable i. If there was no semi-colon, the output would’ve been i=1, 3 times. There is no error. Upvote 0 Downvote
Answer: a Explanation: The output won’t be shown since we’ve added a semi-colon after the declaration of the variable i. If there was no semi-colon, the output would’ve been i=1, 3 times. There is no error.