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

To find whether a number is even or odd without using any
conditional operator??

Answer Posted / sahithya

void main()
{
int n;
printf("enter n:");
scanf("%d",&n);
if(n%2==0)
printf( "even");
else
printf("odd");
}

Is This Answer Correct ?    15 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

hi send me sample aptitude papers of cts?

2222


what are bit fields in c?

1826


Explain c preprocessor?

1162


What is the process of writing the null pointer?

1066


What is define c?

1157


What are loops c?

1105


What is main function in c?

1138


Is it acceptable to declare/define a variable in a c header?

1181


Sir i need notes for structure,functions,pointers in c language can you help me please

2463


Why do we use namespace feature?

1121


What is a pointer value and address in c?

1183


How can I swap two values without using a temporary?

1156


Explain the difference between #include "..." And #include <...> In c?

1093


Why do we use & in c?

1052


Is it valid to address one element beyond the end of an array?

1228