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 / mohd parvez 09311349697

#include<stdio.h>
#include<conio.h>
void main()
{
int num;
printf("Enter a number:");
scanf("%d",&num);
num%2&&printf("Number is ODD")||printf("Number is EVEN");
getch();
}

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can variables be declared anywhere in c?

1095


Who developed c language and when?

1071


application attempts to perform an operation?

1978


What functions are used in dynamic memory allocation in c?

1088


What are Macros? What are its advantages and disadvantages?

1168


How can type-insensitive macros be created?

1171


What are qualifiers?

1053


Which function in C can be used to append a string to another string?

1222


What does sizeof int return?

1085


any "C" function by default returns an a) int value b) float value c) char value d) a & b

1087


What oops means?

1004


Why do we need arrays in c?

1160


Explain function?

1095


What is the advantage of using #define to declare a constant?

1099


What is a macro in c preprocessor?

1103