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 / sadakrishnaj

to print numbers which are even from 1 to 100
#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
int a;
printf("enter the no");
scanf("%d",&a);
if(a%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
}

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1185


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

2271


What is meant by realloc()?

1138


Differentiate between #include<...> and #include '...'

1050


Explain the ternary tree?

1024


What is %lu in c?

1254


What is the argument of a function in c?

1046


Dont ansi function prototypes render lint obsolete?

1124


what are enumerations in C

1161


What is a loop?

1035


Are the variables argc and argv are always local to main?

1020


Using which language Test cases are added in .ptu file of RTRT unit testing???

4275


Difference between strcpy() and memcpy() function?

1141


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1511


Explain what does a function declared as pascal do differently?

1281