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 even numbers?

Answer Posted / shruti

to print numbers which are even from 0 to 100

main()
{
int i;

puts("THE EVEN NUMBERS ARE:");

for(i = 0 ; i <= 100 ; i++)
{
if(i%2 == 0)
printf("%d", i);
}

}

Is This Answer Correct ?    23 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is bit rate & baud rate? plz give wave forms

1914


Tell me is null always defined as 0(zero)?

1034


How can I do peek and poke in c?

1038


What is f'n in math?

1010


What is an example of structure?

981


What are the different categories of functions in c?

1082


Can main () be called recursively?

1064


Explain which function in c can be used to append a string to another string?

1037


If null and 0 are equivalent as null pointer constants, which should I use?

1120


What is a program flowchart?

1125


Explain how can you determine the size of an allocated portion of memory?

1041


What are the 5 types of inheritance in c ++?

967


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1651


What is wrong with this program statement? void = 10;

1204


Is c a great language, or what?

1050