answersLogoWhite

0

printf(\n "ENTER THE NUMBER\t");

scanf{"%d",&a);

while(a!=0);

{

r=a%2;

if(r==0)

printf("\n\n THE NUMBER IS EVEN \t");

else

printf("\n\n THE NUMBER IS ODD \t");

printf ("\n ENTER THE NUMBER \t");

scanf("%d",&a);

}

getch();

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Write a program to input two numbers and interchange there value using the third variable Give anawers in Basic method?

Public Sub Swap() dim inta as integer dim intb as integer dim intc as integer inta=4 intb=5 intb=inta intc=intb inta=intc End Sub


Will the iPhone 5 have a keyboard?

Yes, of coarse it will, but it is unclear whether it will be virtual or a slide out keyboard.


Which category does the keyboard fall under?

That depends on what the categories are, and whether you're talking about a computer keyboard or a music keyboard. Percussion


What is a Desk check trace table?

Going through a program on paper to check whether it has errors.


Is 8.5 an integer?

No, -8.5 is not an integer. An integer is a number without any fractions.


Write a program in vb to check whether a no is prime or not?

Function isPrime(ByVal n As Integer) As Boolean If n < 2 Then Return False End If Dim sqrtn As Integer = Math.Sqrt(n) + 1 For i As Integer = 2 To sqrtn If (n Mod i) = 0 Then Return False End If Next Return True End Function


Is it true that an alternative to the QWERTY keyboard is the virtual keyboard?

The specific arrangement of keys on a keyboard is a separate issue, from whether you are using physical keys or virtual keys. The virtual keyboard is an alternative to the actual keyboard, not to the QWERTY keyboard.


Write a program to check whether the number is divisible by 3 or not by using the?

I assume you mean is an if the number is an integer multiple of 3i am unfamiliar with C but the theory would be,find if a is integer multiple of 3b=a/3b==round(b).if 1 "yes"else "no"this is an inefficiency way but will get the job done


What is the average price of a backlit keyboard?

The average price of a backlit keyboard is $50. This does depend however on the form factor (whether its for a PC or a tablet) and whether you want wireless connectivity or not.


Why Won't your Keyboard work at start up?

Hi, 1) check for your keyboard whether it is an USB based keyboard, because after the OS loads all the drivers are going to start go that may be the problem. 2) check the keyboard itself whether it is working or not by view on the num lock light.


Write a program that prompts the user to input a positive integer It should then output a message indicating whether the number is aprime or not?

Output a prompt.Either:Read from standard input (std::cin) to an integer.Or:Read a line from standard input (std::getline()) to a string.Create a string stream (std::stringstream) to read the string.Read from the string stream to an integer.For each integer from 2 to half the entered integer:If the entered integer is divisible by the current integer:The number is not prime.Exit the program.The number is prime.Exit the program.


What is the integer of 6.51 plus 1.35 plus 15.46?

Do the addition, then convert to an integer. The result will depend on whether you want to round to the nearest integer, round up, or round down.