write a program for even numbers?

Answer Posted / dwarika

#include<stdio.h>
#include<conio.h>
int main()
{
clrscr();
int a;
printf("enter the no");
scanf("%d",&a);
if(a%2==0)
{
printf("no is even");
}
else
{
printf("odd no");
}
getch();
return 0;
}

Is This Answer Correct ?    56 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a char in c?

556


What is structure in c definition?

574


main() { printf("hello"); fork(); }

697


What is a macro?

657


How many levels deep can include files be nested?

652






Explain what is the most efficient way to store flag values?

700


What are the restrictions of a modulus operator?

638


What are types of preprocessor in c?

617


How can I swap two values without using a temporary?

617


Why do we use null pointer?

607


Write a program to reverse a linked list in c.

645


Why is C language being considered a middle level language?

655


Are comments included during the compilation stage and placed in the EXE file as well?

672


which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +

1186


Write the control statements in C language

650