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 1d array in c?

1096


How can a process change an environment variable in its caller?

1190


What do you know about the use of bit field?

1050


What is scanf_s in c?

1125


What is difference between Structure and Unions?

1256


Can you subtract pointers from each other? Why would you?

963


What is a pointer in c plus plus?

1311


Where register variables are stored in c?

970


What are examples of structures?

1116


How do you list files in a directory?

1146


pierrot's divisor program using c or c++ code

2245


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3250


What is the translation phases used in c language?

1124


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

1229


What is const volatile variable in c?

1038