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 can you return multiple values from a function?

638


Who invented b language?

922


Explain what is the advantage of a random access file?

670


Why do we use return in c?

571


What is the use of typedef in c?

592






int far *near * p; means

3126


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

2376


Explain what is a stream?

613


what does static variable mean?

657


Can we assign integer value to char in c?

619


What is the meaning of && in c?

552


Explain a pre-processor and its advantages.

637


Is file a keyword in c?

505


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

618


What is the difference between abs() and fabs() functions?

610