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 static volatile in c?

574


Explain what are bus errors, memory faults, and core dumps?

788


How can I read in an object file and jump to locations in it?

576


Why is structure important for a child?

601


Explain the use of 'auto' keyword in c programming?

679






Place the #include statement must be written in the program?

569


Why we use stdio h in c?

578


What is the difference between fread and fwrite function?

640


What is a string?

664


Explain what is page thrashing?

609


Explain why can’t constant values be used to define an array’s initial size?

854


List the different types of c tokens?

625


Why isnt there a numbered, multi-level break statement to break out

587


Define recursion in c.

699


in iso what are the common technological language?

1633