Question...
for (i=2; i<=20; i++)
{ cout<<"Hello";}
Ans = 19 times .
Now explain me, how do we get 19..? And what does this mean..
Answers
Answered by
0
Answer:
It came 19 because we gave the system the info toh print hello less or equal to 20 starting from 2.
Answered by
0
Answer:
the loop iterates from 2 to 20
count from 2 till 20
you'll get 19...
when it becomes 21...the value no longer satisfies the <=20 condition
so the loop stops
all the best for CS exam
Similar questions