Answer Posted / k.naveen kumar
#include<stdio.h>
#include<conio.h>
main()
{
int a;
printf("Please enter the number :=> ");
scanf("%d",&a);
if (a%2==0)
printf("Even");
else
printf("odd");
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why doesnt long int work?
What is the code in while loop that returns the output of given code?
What is a program?
Which programming language is best for getting job 2020?
Explain why c is faster than c++?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
Explain what are bus errors, memory faults, and core dumps?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.
What are data types in c language?
Lists the benefits of c programming language?
Differentiate abs() function from fabs() function.
Why clrscr is used in c?
How can I write a function that takes a format string and a variable number of arguments?