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
When is the “void” keyword used in a function?
a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.
What is string constants?
Does c have enums?
Why can arithmetic operations not be performed on void pointers?
What is the difference between ‘g’ and “g” in C?
What is the use of volatile?
Explain a file operation in C with an example.
What are types of functions?
How to explain the final year project as a fresher please answer with sample project
What is "Duff's Device"?
What are valid signatures for the Main function?
a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);
What is graph in c?
What is a floating point in c?