Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Give me the code of in-order recursive and non-recursive.

1340


Discuss the function of conditional operator, size of operator and comma operator with examples.

1120


What are the types of variables in c?

996


Is it possible to have a function as a parameter in another function?

1052


What is self-referential structure in c programming?

1167


Explain the difference between getch() and getche() in c?

954


What is the difference between a string and an array?

1175


How can I get the current date or time of day in a c program?

1191


What are the complete rules for header file searching?

1050


What is oops c?

1157


Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

4179


what type of questions arrive in interview over c programming?

1994


What are the functions to open and close the file in c language?

1008


How many levels of pointers can you have?

1150


Can a pointer be null?

993