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 / satyanarayana

#include<stdio.h>
void main()
{
int p;
printf("number:");
scanf("%d",&p);
while(p%2)
{
printf("odd");
}
printf("even");
}

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is a function method?give example?

2369


What is the size of structure pointer in c?

1067


What is the use of ?

1042


What is volatile variable in c?

1095


What is c system32 taskhostw exe?

1028


Which header file should you include if you are to develop a function which can accept variable number of arguments?

1405


What functions are in conio h?

1210


How to create struct variables?

1112


How do you list a file’s date and time?

1071


how to count no of words,characters,lines in a paragraph.

4431


How many parameters should a function have?

1196


Why c is called top down?

1165


Explain built-in function?

1142


Explain how can I convert a number to a string?

1153


Distinguish between actual and formal arguments.

1085