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...

find a number whether it is even or odd without using any
control structures and relational operators?

Answer Posted / guest

#include<stdio.h>
#include<conio.h>
void main()
{
int x;
if(x%2==0)
printf("even");
else
printf("odd");
getch();
}

Is This Answer Correct ?    4 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I automatically locate a programs configuration files in the same directory as the executable?

1112


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1143


Why is not a pointer null after calling free?

976


Where is volatile variable stored?

1033


What is c language in simple words?

1023


When do we get logical errors?

1081


What is the scope of an external variable in c?

993


Why we write conio h in c?

975


what is stack , heap ,code segment,and data segment

2640


Is c easier than java?

1003


‎How to define structures? · ‎

1037


What is s or c?

1023


What are the advantages of the functions?

1101


What is scanf () in c?

1066


What are # preprocessor operator in c?

1053