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

What is volatile c?

1088


By using C language input a date into it and if it is right?

1132


Write a program for finding factorial of a number.

1142


formula to convert 2500mmh2o into m3/hr

1049


How do you generate random numbers in C?

1246


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

1090


Explain that why C is procedural?

1192


What are external variables in c?

1165


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

2021


How can I call a function with an argument list built up at run time?

1285


What is the use of function in c?

1248


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1169


What is the scope of global variable in c?

1035


What are the 4 types of organizational structures?

1161


What is derived datatype in c?

1143