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 are the data types present in c?

1091


What is the difference between memcpy and memmove?

968


What is the collection of communication lines and routers called?

1055


Write a program on swapping (100, 50)

1063


What is a nested formula?

1054


What is c method?

941


Do you know null pointer?

975


What is a file descriptor in c?

1054


What is || operator and how does it function in a program?

1041


How can you read a directory in a C program?

1095


What is the process to generate random numbers in c programming language?

1098


Describe the modifier in c?

1058


What are lookup tables in c?

951


Why c is faster than c++?

979


What is difference between Structure and Unions?

1185