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

What is a static variable in c?

1129


shorting algorithmS

2255


Explain what is output redirection?

1195


If you know then define #pragma?

1108


What is c mainly used for?

1061


Explain about the functions strcat() and strcmp()?

1053


How do you do dynamic memory allocation in C applications?

1089


How to find a missed value, if you want to store 100 values in a 99 sized array?

1414


By using C language input a date into it and if it is right?

1085


How can you restore a redirected standard stream?

1124


Explain can static variables be declared in a header file?

1155


What is define c?

1079


What is difference between constant pointer and constant variable?

1314


What is the sizeof () operator?

1086


Differentiate between #include<...> and #include '...'

1060