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 to find the number of even integers and odd
integers in a given array in c language

Answer Posted / shuvendu sekhar sahu

#include<stdio.h>
#include<conio.h>
main()
{
int x;
clrscr();
printf("Enter the value");
scanf("%d",& x);
if(x%2==0)
printf("x is even");
else
printf("x is odd");
getch();
}

Is This Answer Correct ?    54 Yes 45 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How main function is called in c?

1128


How can I read/write structures from/to data files?

976


Explain how can you avoid including a header more than once?

1094


Which type of language is c?

1079


how to introdu5ce my self in serco

2008


What is sizeof return in c?

1041


how to count no of words,characters,lines in a paragraph.

4432


printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

1162


How does placing some code lines between the comment symbol help in debugging the code?

1007


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

1126


What are the advantages of using Unions?

1122


Why c is procedure oriented?

1081


What is the use of function overloading in C?

1178


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3730


What is a built-in function in C?

1608