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
How can you return multiple values from a function?
Who invented b language?
Explain what is the advantage of a random access file?
Why do we use return in c?
What is the use of typedef in c?
int far *near * p; means
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
Explain what is a stream?
what does static variable mean?
Can we assign integer value to char in c?
What is the meaning of && in c?
Explain a pre-processor and its advantages.
Is file a keyword in c?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What is the difference between abs() and fabs() functions?