Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

write a program to print data of 5 five students with structures?

2044


write a program to display all prime numbers

1962


How many parameters should a function have?

1186


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1071


Is struct oop?

1002


Can we add pointers together?

1056


In c language can we compile a program without main() function?

1135


What is the difference between local variable and global variable in c?

1229


How can I call a function with an argument list built up at run time?

1242


Why can arithmetic operations not be performed on void pointers?

1042


Is python a c language?

1002


What are the advantages of using linked list for tree construction?

1085


Explain how do you print only part of a string?

1214


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

1223


Is calloc better than malloc?

1015