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

What does emoji p mean?

1110


When should a type cast not be used?

1058


Do you have any idea how to compare array with pointer in c?

1046


What is a scope resolution operator in c?

1263


the statement while(i) puts the entire logic in loop. this loop is called a) indefinite loop b) definite loop c) loop syntax wrong d) none of the above

1043


Describe wild pointers in c?

1108


Can stdout be forced to print somewhere other than the screen?

1045


What are dangling pointers in c?

1219


Is printf a keyword?

1196


What is the use of in c?

1024


Write a program to check armstrong number in c?

1127


Explain how can I right-justify a string?

1041


Explain what is the difference between functions abs() and fabs()?

1178


What's the best way of making my program efficient?

1099


Write a program to show the change in position of a cursor using c

1052