write a program for even numbers?

Answer Posted / v.karthikeyan

#include <stdio.h>
main()
{
int num;

printf("Enter a number to know the entered number is odd or
even \n");
scanf("%d",&num);

if (num%2==0)
{
printf(" The number is Even");
else
printf(" The number is Odd")
}
getch();
}

Is This Answer Correct ?    88 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is define c?

574


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

688


How does selection sort work in c?

621


How can I remove the trailing spaces from a string?

616


Can a variable be both static and volatile in c?

608






How do I copy files?

623


What are the different file extensions involved when programming in C?

758


How does sizeof know array size?

629


What is c preprocessor mean?

793


I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.

1739


Differentiate Source Codes from Object Codes

822


What is the meaning of 2d in c?

613


What is meant by 'bit masking'?

885


What is the collection of communication lines and routers called?

614


What is the time and space complexities of merge sort and when is it preferred over quick sort?

676