1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Kaylis [27]
3 years ago
11

Sum.Write a program that prompts the user to read two integers and displays their sum.Your program should prompt the user to rea

d the number again if the input is incorrect.
Computers and Technology
1 answer:
adelina 88 [10]3 years ago
7 0

Answer:

while True:

   number1 = input("Enter the number1: ")

   number2 = input("Enter the number2: ")

   

   if number1.isnumeric() and number2.isnumeric():

       break

 

number1 = int(number1)

number2 = int(number2)

print("The sum is: " + str(number1 + number2))

Explanation:

*The code is in Python.

Create an infinite while loop. Inside the loop, Get the number1 and number2 from the user. Check if they are both numeric values. If they are, stop the loop (Otherwise, the program keeps asking for the numbers).

When the loop is done, convert the numbers to integer numbers

Calculate and print their sum

You might be interested in
Guyssss......urgent helppp plsss answerrrr
kirill115 [55]

Explanation:

XML

<h2><em><u>pls</u></em><em><u> </u></em><em><u>mark</u></em><em><u> </u></em><em><u>me</u></em><em><u> </u></em><em><u>as</u></em><em><u> </u></em><em><u>brainlist</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>.</u></em><em><u>!</u></em><em><u>!</u></em></h2>
7 0
3 years ago
What are the six critical components of an information system? Select three of the six components, and describe a potential vuln
Blizzard [7]
People, procedures and instructions, data, software, information technology infrastructure, internal controls.
7 0
3 years ago
The scope of a temporary table is limited to what?
kari74 [83]

The scope of a temporary table is limited to the database session in which it's defined.

<h3>What is a database?</h3>

A database can be defined as an organized and structured collection of data that are stored on a computer system as a backup and are usually accessed electronically.

In database management system (DBMS), the scope of a temporary table is generally limited to the database session in which it's defined by a software developer or programmer.

Read more on database here: brainly.com/question/13179611

#SPJ12

8 0
2 years ago
Please help me for this question - Computer Science
gavmur [86]

Answer:

# F F F F 0 0

# F F 0 0 F F

# 0 0 F F F F

Explanation:

Hex values are your friend.

The first two digits represent red.

# F F 0 0 0 0 - Red

The second two digits represent green.

# 0 0 F F 0 0 - Green

The third two digits represent blue.

# 0 0 0 0 F F - Blue

If you know yellow is a combination of red and green, you express the corresponding digits.

# F F 0 0 0 0 - Red

# 0 0 F F 0 0 - Green

+

-------------------------------

# F F F F 0 0 - Yellow

Similarly,

If you know magenta is a combination of red and blue, you express the corresponding hex digits.

# F F 0 0 0 0 - Red

# 0 0 0 0 F F - Blue

+

-----------------------------

# F F 0 0 F F - Magenta

And finally,

If you know cyan is a combination of green and blue, you express the corresponding hex digits.

# 0 0 F F 0 0 - Green

# 0 0 0 0 F F - Blue

+

----------------------------

# 0 0 F F F F - Cyan

What does it mean to "express the digits"?

If you know anything about how color works on a computer, you'll know that you can express a certain amount of red, green and blue to get almost any color. These are known as "RGB" values. In RGB, the red, green or blue can individually go from 0 - 255. Think of it like a slider for how much you want of each color.

In RGB:

RGB (255, 255, 255) - White

Hex is just a really convenient and shorthand way to write the RGB color values.

In Hex:

#FFFFFF - White

6 0
3 years ago
Rico is working on a document titled ‘Document1’. Which is most likely the case for Rico’s document?
Natasha2012 [34]
A. He has not saved the document yet.
reason being is that most documents today will change their title on what it is thats written on the paper unless you personally change it yourself
8 0
3 years ago
Read 2 more answers
Other questions:
  • What is meaning of reboot
    7·2 answers
  • What should a system administrator use to disable access to a custom application for a group of users?
    5·1 answer
  • Alto Innovations creates custom software for organizations. The company's managers want to build a high-performance culture in t
    11·1 answer
  • QUESTION
    14·1 answer
  • Write a function shampoo_instructions() with parameter num_cycles. If num_cycles is less than 1, print "Too few.". If more than
    9·1 answer
  • Minerals that contain the elements silicon and oxygen are called ______.
    7·1 answer
  • How do i convert videos on the computer
    10·1 answer
  • Which criterion can be used to select the appropriate type of network media for a network?
    8·1 answer
  • What is netiquettes?. Mention any 4 netiquettes. (for class 6)​
    5·1 answer
  • Tina has taken the time to modify font sizes and colors in a text box and would like to duplicate those settings on other text b
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!