write a program to display the first n odd number . accept first odd number
Answers
Answered by
0
Answer:
Dry Run of the Program
We enter the for loop for(i=1;i<=2*n;i++) where i is your counter. if(i%2==0) it is true as 2%2=0 hence 0==0 so we do not print i and just continue that is skip the below part. if(i%2==0) it is true as 4%2=0 hence 0==0 so we do not print i and just continue that is skip the below part.
Answered by
0
Dry run of the program
Hope this helps you
Please mark me as brainliest
Hope this helps you
Please mark me as brainliest
Similar questions