Computers and Technology, 02.11.2020 14:00 jocelynmarquillo1
Assignment 4 evens and odds
Write a program that will ask a user for how many numbers they would like to check. Then, using a for loop, prompt the user for a number, and output if that number is even or odd. Continue doing this as many times as the user indicated. Once the loop ends, output how many even numbers were entered and how many odd numbers were entered.
Sample Run 1
How many numbers do you need to check? 5
Enter number: 20
20 is an even number.
Enter number: 33
33 is an odd number.
Enter number: 4
4 is an even number.
Enter number: 77
77 is an odd number.
Enter number: 8
8 is an even number.
You entered 3 even number(s).
You entered 2 odd number(s).
Sample Run 2
How many numbers do you need to check? 3
Enter number: 10
10 is an even number.
Enter number: 3
3 is an odd number.
Enter number: 400
You entered 2 even number(s).
You entered 1 odd number(s).
Answers: 3
Computers and Technology, 22.06.2019 08:00
What is the first step in creating a maintenance ?
Answers: 2
Computers and Technology, 23.06.2019 00:30
Which of the following would you find on a network
Answers: 3
Computers and Technology, 24.06.2019 12:00
Jack is assisting his younger sibling mary with her mathematics assignment, which includes a study of the number system. jack explains to mary that whole numbers are counting numbers that could be used to record the number of fruits in a basket. which data type represents whole numbers? a.integers.b.floating-point numbers. c.strings.d.boolean
Answers: 1
Assignment 4 evens and odds
Write a program that will ask a user for how many numbers they would li...
Mathematics, 04.01.2020 23:31
Mathematics, 04.01.2020 23:31
Biology, 04.01.2020 23:31
Chemistry, 04.01.2020 23:31
History, 04.01.2020 23:31
Mathematics, 04.01.2020 23:31
Social Studies, 04.01.2020 23:31
Mathematics, 04.01.2020 23:31
English, 04.01.2020 23:31
Social Studies, 04.01.2020 23:31