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 the maximum length of an identifier?

1184


What is a char c?

1043


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

2176


How do I swap bytes?

1067


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

1043


How can I write a function analogous to scanf?

1177


What is character constants?

1178


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5947


Using which language Test cases are added in .ptu file of RTRT unit testing???

4273


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1946


What is the size of enum in c?

1110


What are high level languages like C and FORTRAN also known as?

1168


shorting algorithmS

2252


What is the use of header files?

1103


Write a program of advanced Fibonacci series.

1145