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 main function is called in c?
How can I read/write structures from/to data files?
Explain how can you avoid including a header more than once?
Which type of language is c?
how to introdu5ce my self in serco
What is sizeof return in c?
how to count no of words,characters,lines in a paragraph.
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
How does placing some code lines between the comment symbol help in debugging the code?
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
What are the advantages of using Unions?
Why c is procedure oriented?
What is the use of function overloading in C?
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
What is a built-in function in C?