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

Can we access the array using a pointer in c language?

990


What do you mean by c what are the main characteristics of c language?

976


What are void pointers in c?

959


process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,

2354


Where is c used?

1029


What is #define?

1032


How can you increase the size of a statically allocated array?

1029


What happens if header file is included twice?

1089


Explain how can I pad a string to a known length?

1122


When should the register modifier be used? Does it really help?

916


Explain how can I read and write comma-delimited text?

1112


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

993


Explain #pragma statements.

978


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1376


What is the difference between constant pointer and constant variable?

1164