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 the process to create increment and decrement stamen in c?
what is the syallabus of computer science students in group- 1?
please give me some tips for the placement in the TCS.
What are terms in math?
FILE PROGRAMMING
What is a const pointer in c?
Explain what are multidimensional arrays?
Why c language is called c?
How do you use a pointer to a function?
Here is a good puzzle: how do you write a program which produces its own source code as output?
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.
Can I initialize unions?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
How does sizeof know array size?
code for find determinent of amatrix