answersLogoWhite

0


Best Answer

#include <stdio.h>

int main()

{

printf("Program to find ODD or Even Number\n");

while(1)

{

int n = 0;

printf("\nEnter a number(-1 for Exit): ");

scanf("%d",&n);

if( n 0)

{

printf("%d is a EVEN number.\n", n);

}

else

{

printf("%d is a ODD number.\n", n);

}

}

return 0;

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Turbo c program that will determine if the input is odd or even number?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

An assembly language program that will take three decimal input and display minimum of them?

program that take three decimal number as input and find the largest among them in assembly language


Input and output of turbo c?

input scanf() , getch() , getche() output printf() , putch() , putchar()


Java script program to Print the Fibonacci series using array?

&lt;script type = "text/javascript"&gt; var input; var rev = 0; input=window.prompt ("Please enter a 5-digit number to be reversed."); input = input * 1; while (input &gt; 0) { rev *= 10; rev += input % 10; input /= 10; } document.write ("Reversed number: " + rev); &lt;/script&gt;


How do you write a looping program to check whether input is a buzz number or not?

Buzz numbers are aircraft identification numbers that were applied to American aircraft following the second world war and through the 1960's. To determine if an input is a buzz number or not, the input must consist of a two- or three-letter manufacturing code and a 3-digit number, separated by a hyphen. The digits are generally the last three digits of the aircraft serial number. Validating the manufacturing code is relatively simple given there were only 173 issued. However, validating the three-digit code would be impossible without a complete list of all aircraft that were assigned a buzz number. If such a list exists, storing them in sequential order would allow your program to perform a fast binary search to determine if the input were valid or not. In the absence of such a list, the manufacturing code alone would at least tell you which type of aircraft the buzz number (if valid) would have applied to.


How do you create a program that can input 100 names using flowchart?

create a program that can input 100 names

Related questions

How do you write a function in Turbo C that can run the program without rerunning the whole program?

The execution path of a program can only be affected by the program input. That is, if you change the input, you can alter the way the program behaves (just as changing the arguments to a function can alter the behaviour of the function). Typically you will alter the input via the command line, but you can also alter the input at any time during program execution. Redirecting input via the command line can be achieved by extracting the input from a file (via std::cin) or by implementing command line switches in your main function, or through a combination of the two.


An assembly language program that will take three decimal input and display minimum of them?

program that take three decimal number as input and find the largest among them in assembly language


What is legal input?

In a computer program, a legal input is something that can be put into a program and it will work. An illegal input may crash the program.


Which is not a way to input data into a program?

without understanding the program giving a input


Input and output of turbo c?

input scanf() , getch() , getche() output printf() , putch() , putchar()


Is a program with no input an incorrect program?

No, as long as it calculates something, displays something, or otherwise has an output that benefits the user, it is a program. It could be a program that makes a random number, or a program that tells the user a joke from a database.


C program to print mark sheet of 5 subjects and the number of students is user input?

hhh


Java script program to Print the Fibonacci series using array?

&lt;script type = "text/javascript"&gt; var input; var rev = 0; input=window.prompt ("Please enter a 5-digit number to be reversed."); input = input * 1; while (input &gt; 0) { rev *= 10; rev += input % 10; input /= 10; } document.write ("Reversed number: " + rev); &lt;/script&gt;


How do you write a looping program to check whether input is a buzz number or not?

Buzz numbers are aircraft identification numbers that were applied to American aircraft following the second world war and through the 1960's. To determine if an input is a buzz number or not, the input must consist of a two- or three-letter manufacturing code and a 3-digit number, separated by a hyphen. The digits are generally the last three digits of the aircraft serial number. Validating the manufacturing code is relatively simple given there were only 173 issued. However, validating the three-digit code would be impossible without a complete list of all aircraft that were assigned a buzz number. If such a list exists, storing them in sequential order would allow your program to perform a fast binary search to determine if the input were valid or not. In the absence of such a list, the manufacturing code alone would at least tell you which type of aircraft the buzz number (if valid) would have applied to.


How do you create a program that can input 100 names using flowchart?

create a program that can input 100 names


A program to find that the input number is prime or not?

Use Wolfram|Alpha... go to the related link below, Wolfram|Alpha, and type in (is __ (number) prime) and then the program will compute that and tell you if it is prime or composite.


How to write a java program to extract the last digit from the input?

Assuming you've entered a multi-digit number whole number (an integer), then take the modus (%) of the number and 10. E.g., if the number input was 1234, then 1234 % 10 is 4. Thus the final digit is 4. Note that modus 10 is the same as dividing the number by 10 and taking the remainder.