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

Write a program to find the given number is odd or even
without using any loops(if,for,do,while)

Answer Posted / ramu gurram

#include<stdio.h>
int main()
{
int i;
printf("enter a number \n");
scanf("%d",i);
float f=i%2;
f==0 ? printf("given number is even") : printf("given
number is odd");
return 0;
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1167


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2106


will u please send me the placement papers to my mail???????????????????

1883


What is spark map function?

1202


What is volatile keyword in c?

1085


What is a void * in c?

1132


How can you find the exact size of a data type in c?

1044


Can you please explain the difference between malloc() and calloc() function?

1174


What is a nested loop?

1178


What is pointer and structure in c?

1274


What is #include stdio h and #include conio h?

1173


Explain a pre-processor and its advantages.

1188


What is the use of static variable in c?

1139


What's the right way to use errno?

1200


Can a function argument have default value?

1203