![vannaht2003](/avatars/26703.jpg)
vannaht2003
19.08.2020 •
Computers and Technology
Write a program that could find whether the number entered through keyboard is odd or even the program should keep on taking the value till the user ends.
Solved
Show answers
More tips
- F Food and Cooking Discover the Health Benefits of Cedar Nuts...
- S Science and Technology Exploring Our Galaxy: How Many Planets are in the Milky Way?...
- S Science and Technology Colliders: How They Work and Why They Matter...
- A Animals and plants Unraveling the Mystery of Loch Ness: What Does the Loch Ness Monster Look Like?...
- L Leisure and Entertainment How Many Seasons are There in the TV Show Interns?...
- S Sport Playing Bowling: Rules and Advice for Novices...
- L Leisure and Entertainment The Best Film of 2010: A Look Back at the Academy Awards...
- S Sport How to Learn Swimming? Simple Tips for Beginners...
- C Computers and Internet What is Web 2.0 and How Does it Work?...
- C Computers and Internet War of Social Media: Which Platform is the Leader?...
Answers on questions: Computers and Technology
- C Computers and Technology Uuum is this possible...
- C Computers and Technology Puutepug Previous C Reset 6:40 (ID: 21683) AA (42:43 Which path would you follow to add new colors to an existing swatch library? 0000 Window Swatches Edit Color Settings Window...
- C Computers and Technology Which line of code will pause the program for 7 seconds? import time time.sleep(7) is the answer...
- M Mathematics Are the data Linear? explain...
- H History Plz help me !! Which statement most clearly shows the use of propaganda? A. Janey Yen is running against City Commissioner Kathy Klegal. B. City Commissioner Kathy Klegal was...
- M Mathematics Write the slope-intercept form of the equation of the line through the given point with the given slope. through: (-4,2), slope = -2/3...
- M Mathematics What is the slope of a line perpendicular to the line whose equation is 2x -y=5...
- B Biology The belief of early astronomers that the Earth was the center of the universe is called the theory. A. equatorialB. heliocentricC. solar centricD. geocentric...
- M Mathematics ANYONE PLEASE HELP SHOW WORK PLEASE THIS IS DUE IN ONE HOUR‼️‼️‼️...
- G Geography Deforestation can result in an increase which of these ? A carbon dioxide B. Invasive species C soil conversation...
Ответ:
using namespace std;
int main() {
int number;
while (1) {
cout << "Enter a number: ";
cin >> number;
cout << number << " is " << ((number % 2) ? "odd" : "even") << endl;
};
return 0;
}
Explanation:
This is a c++ version. Let me know if you need other languages.
The (number % 2) is the essence of the program. It returns 0 for even numbers, and 1 for odd numbers (the remainder after division by 2).
Ответ:
reason :
word processor is a software to make a letter. it has many functions. not only for make a letter. word processor is made for make a document in a computer
program examples :
- Microsoft Word
- Wordpad