write a program for odd numbers?

Answer Posted / keerthana

#include<stdio.h>
void main()
{
int n,i;
scanf("%d",&n);
for(i=0;i<=n;i++)
{
if(n%2)!=0)
printf("Odd numbers",n);
}
}

Is This Answer Correct ?    11 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between %d and %i?

598


explain what are actual arguments?

641


What is function what are the types of function?

563


What is c method?

539


Function calling procedures? and their differences? Why should one go for Call by Reference?

639






Are enumerations really portable?

600


Is c# a good language?

614


What is 'bus error'?

651


How do I use void main?

637


while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above

750


Explain union. What are its advantages?

622


code for replace tabs with equivalent number of blanks

1645


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3152


How can I implement sets or arrays of bits?

609


Can an array be an Ivalue?

668