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


Please Help Members By Posting Answers For Below Questions

What is the process to create increment and decrement stamen in c?

775


what is the syallabus of computer science students in group- 1?

2032


please give me some tips for the placement in the TCS.

1836


What are terms in math?

775


FILE PROGRAMMING

1975






What is a const pointer in c?

842


Explain what are multidimensional arrays?

788


Why c language is called c?

727


How do you use a pointer to a function?

832


Here is a good puzzle: how do you write a program which produces its own source code as output?

818


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.

4781


Can I initialize unions?

792


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

1611


How does sizeof know array size?

818


code for find determinent of amatrix

1712