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 / umair jatoi && zain ja

/* ZAIN JATOI AND UMAIR JATOI */
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int n;
printf("Enter any number:");
scanf("%d",&n);
if(n&1)
printf("%d is Odd number",n);
else
printf("%d is even number",n);
getch();
}

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the need of structure in c?

1189


What is data structure in c language?

1161


Which one would you prefer - a macro or a function?

1134


Find MAXIMUM of three distinct integers using a single C statement

1118


What is const volatile variable in c?

1105


What is the best way to comment out a section of code that contains comments?

1390


Explain can static variables be declared in a header file?

1202


Write a code to generate a series where the next element is the sum of last k terms.

1292


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1994


What is the use of pointers in C?

1136


Is c procedural or functional?

1098


Under what circumstances does a name clash occur?

1279


can any one provide me the notes of data structure for ignou cs-62 paper

2232


How can I call fortran?

1101


write a progrmm in c language take user interface generate table using for loop?

2103