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 / abhradeep chatterjee

ya. the first answer has impressed me.

#include<stdio.h>
main()
{
int n;
string p[2]={"Even","odd"};
Printf("Enter the number");
scanf("%d",&n);
n=n%2;
printf("The value is %s",p[n]);

}

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define Spanning-Tree Protocol (STP)

1085


What is cohesion and coupling in c?

999


What is the difference between functions getch() and getche()?

1054


What is new line escape sequence?

1285


can anyone please tell about the nested interrupts?

2086


What is the difference between the local variable and global variable in c?

941


What is the purpose of macro in C language?

1078


Explain what is the concatenation operator?

1124


What are variables c?

1008


Explain what is the stack?

1055


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

2136


How do I read the arrow keys? What about function keys?

1031


What is an endless loop?

1245


In a byte, what is the maximum decimal number that you can accommodate?

1088


Tell us two differences between new () and malloc ()?

1138