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 / mehak saini

include<stdio.h>
include<conio.h>
void main()
{
inti,num;
printf("enter the number")
scanf(%d",&num);
for(i=1;i=<num;i+1)
{
if(i%2==0)
{
printf("%d",i);
}
}
getch();
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are its uses in c programming?

1024


Which control loop is recommended if you have to execute set of statements for fixed number of times?

1306


Explain the difference between strcpy() and memcpy() function?

957


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1171


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1542


Which type of language is c?

1034


What is the use of c language in real life?

984


develop algorithms to add polynomials (i) in one variable

2118


What is I ++ in c programming?

1072


Describe the modifier in c?

1065


How do I create a directory? How do I remove a directory (and its contents)?

1112


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1200


What is %d used for?

999


What are the 32 keywords in c?

1054


Explain the advantages of using macro in c language?

962