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 are pointers?

1053


What is cohesion in c?

932


How is a null pointer different from a dangling pointer?

983


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1968


Why should I prototype a function?

1134


What is meant by operator precedence?

1104


Write a program to check palindrome number in c programming?

976


What is sorting in c plus plus?

945


What is the use of structure padding in c?

1023


State the difference between realloc and free.

1043


Why enum is used in c?

909


List the variables are used for writing doubly linked list program.

1974


Explain what is output redirection?

1151


Why is c still so popular?

1018


Write a code to generate a series where the next element is the sum of last k terms.

1186