Write a pro-gramme to determine whether the number is even or odd?

Answer Posted / azad sable, chiplun

void main();
{
int n;
clrscr();
printf("enter any number");
scanf("%d",&n);
if(n%2==0)
printf("\nthe number is even");
else
printf("\nthe number is odd");
}
getch();
}

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of operators are there in c?

623


what is the c source code for the below output? 5555555555 4444 4444 333 333 22 22 1 1 22 22 333 333 4444 4444 5555555555

2541


Why clrscr is used in c?

593


Explain how does flowchart help in writing a program?

636


What is function what are the types of function?

563






What is use of #include in c?

605


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.

657


Implement bit Array in C.

681


Write a program to generate random numbers in c?

668


Why is sprintf unsafe?

623


Why is event driven programming or procedural programming, better within specific scenario?

1955


What is unary operator?

662


Define circular linked list.

575


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

1543


What are the differences between new and malloc in C?

612