int ctr =0 ; for (int j=1;j<=5;j+=2 ) ++ctr; pls answer it with explanation
Answers
Answered by
0
Answer:
CTR=3
First 'J' value will be 1 , it's satisfying the condition,++CTR,now CTR=1,now J will be increased by 2 and J value will become 3 it's satisfies The condition and CTR=2 , lastly J will be increased by 2 and it's value becomes 5 and satisfies The condition and CTR=3
Similar questions