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 / sreeshma

#include<stdio.h>
main()
{
int i,n;
printf("enter a range of numbers");
scanf("%d",&n);
for(i=0;i<=n;i+2)
{
printf("%d",i);
}
break;
getch();

Is This Answer Correct ?    9 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I manipulate strings of multibyte characters?

1077


What is graph in c?

1007


Define macros.

1223


What is difference between && and & in c?

1045


What is string function c?

967


Do you have any idea about the use of "auto" keyword?

1050


Stimulate calculator using Switch-case-default statement for two numbers

2922


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

1222


If you know then define #pragma?

1054


When should a type cast be used?

964


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1419


In a switch statement, what will happen if a break statement is omitted?

1006


What would be an example of a structure analogous to structure c?

943


Which one would you prefer - a macro or a function?

1033


a c code by using memory allocation for add ,multiply of sprase matrixes

2743