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 / chintu gandhi

main()
{
int i,n;
clrscr();
printf("\nenter range up to which u want to print");
scanf("%d",&n);
for(i=1;i<n;i=i+2)
{
printf("\n%d",i);
}
getch();
}

Is This Answer Correct ?    75 Yes 33 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between single charater constant and string constant?

1086


How can you tell whether a program was compiled using c versus c++?

1102


What is the benefit of using an enum rather than a #define constant?

1234


What are the general description for loop statement and available loop types in c?

1122


What are the advantages of Macro over function?

2005


Why is this loop always executing once?

1054


Which is more efficient, a switch statement or an if else chain?

1019


Write a code to remove duplicates in a string.

1026


What is the explanation for modular programming?

1208


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

3964


Why pointers are used?

1072


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1637


Why is extern used in c?

1091


What is array of pointers to string?

1068


What is masking?

1151