Previous Post029. Write a Program to accept a number and print the number in reverse order. E.g. if 1324 is the number then the output will be 4231 in C language
Next Post027. Write a Program to print first n even numbers in C language
Here i should be initilaized to 1.
here i is initialised to 2
let n=10
2<10
print 2
but 2 is not an odd number.
so this should be the case
i=1 initially
n=10
1<10
print 1
1 is an odd number
Here i should be initilaized to 1.
here i is initialised to 2
let n=10
2<10
print 2
but 2 is not an odd number.
so this should be the case
i=1 initially
n=10
1<10
print 1
1 is an odd number
Hi Shivam, thanks for rectifying the mistake. It is corrected now 🙂
Really appreciate your input.