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
What is far pointer in c?
What is static and volatile in c?
What are header files why are they important?
What is the best way to store flag values in a program?
Write a program to swap two numbers without using the third variable?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
What is abstract data structure in c?
simple program of graphics and their output display
What is the equivalent code of the following statement in WHILE LOOP format?
What are the two forms of #include directive?
What is data types?
What is data structure in c language?
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
What is function prototype?
Explain how can you check to see whether a symbol is defined?