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

Why do we use header files in c?

1066


Explain what is a static function?

1101


What are qualifiers?

1042


Explain what is a 'locale'?

1076


what is the role you expect in software industry?

2142


Write a C program in Fibonacci series.

1083


Compare interpreters and compilers.

1062


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

6861


What is the difference between a string and an array?

1196


What is the advantage of a random access file?

1195


what is recursion in C

1060


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15805


What is the difference between constant pointer and constant variable?

1218


What are the different types of C instructions?

1305


What would happen to X in this expression: X += 15; (assuming the value of X is 5)

1948