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 c program to print a given number as odd or even
without using loop statements,(no if ,while etc)

Answer Posted / avinash kumar

#include<stdio.h>
main()
{
int a;
clrscr();
printf("enter a number:");
scanf("%d",&a);
if(a%2=0)
printf("even");
else
printf("odd")
getch();
}

Is This Answer Correct ?    25 Yes 22 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is anagram in c?

868


Define and explain about ! Operator?

950


Why isn't any of this standardized in c? Any real program has to do some of these things.

1143


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

2103


What is a structure in c language. how to initialise a structure in c?

1014


What is line in c preprocessor?

991


Describe static function with its usage?

1150


How many types of sorting are there in c?

1008


Why can’t constant values be used to define an array’s initial size?

1319


Which header file is essential for using strcmp function?

1417


What are the types of operators in c?

999


Explain can you assign a different address to an array tag?

1009


Why is it important to memset a variable, immediately after allocating memory to it ?

1994


How do you redirect a standard stream?

1048


What are qualifiers in c?

977