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

Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1082


What is external variable in c?

1071


What is typeof in c?

1022


What is the maximum no. of arguments that can be given in a command line in C.?

1159


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

1165


What are the advantages of using Unions?

1128


Simplify the program segment if X = B then C ← true else C ← false

3029


GIven a sequence of characters. How will you convert the lower case characters to upper case characters. ( Try using bit vector - sol given in the C lib -> typec.h)

1115


Can you define which header file to include at compile time?

1032


provide an example of the Group by clause, when would you use this clause

2201


can we change the default calling convention in c if yes than how.........?

2545


Can one function call another?

1123


What is a protocol in c?

1017


What is page thrashing?

1093


In c programming language, how many parameters can be passed to a function ?

1126