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
Ilia_Sergeevich [38]
4 years ago
12

Write a program that reads in two integers typed on the keyboard and outputs their sum, difference, and product.

Computers and Technology
1 answer:
dsp734 years ago
6 0
# Written in python

a = int(input("Enter an integer: "))
b = int(input("Enter an integer: "))

sum = a + b

# subtract the smaller number from the bigger
if a < b:
    dif = a - b
else:
    dif = b - a

prod = a * b

print("The sum is", sum)
print("The dif is", dif)
print("The product is", prod)
You might be interested in
What is the output of print str if str = 'Hello World!'? A - Hello World! ... Q 18 - What is the output of print list[1:3] if li
Elenna [48]
Is this some jiberish or is this a different language because I can’t understand nothing you just typed
6 0
3 years ago
Which act passed by the US government in 1998 criminalizes the production and distribution of technology that intends to evade a
ruslelena [56]
The Computer Fraud and Abuse Act I believe. Sorry if I’m wrong and I hope that it helps :)
8 0
3 years ago
Read 2 more answers
Monica spent a lot of time preparing for her interview, but the hiring manager is not asking any of the questions she practiced.
AnnZ [28]
I would go with the first choice, "Be flexible and adjust to different situations."

It's best to consider beforehand different questions that might seem unlikely to come up during an interview. This way you won't be too thrown off when the conversation takes a different turn. It will also most likely appeal to the interviewer or employer when they see that you can adjust to unfamiliar situations.
4 0
3 years ago
Read 2 more answers
Which feature is an interface between the user and the file system of a computer?
denis23 [38]
That would be the GUI or <span>graphical user interface. Hope this helps and have a nice day!

</span>
8 0
3 years ago
Read 2 more answers
An html element that describes the content of a web page is called a(n):
Marizza181 [45]
I think its <tagname> content right here </tag name>
3 0
3 years ago
Other questions:
  • Why wont my brainly account rank up even tho i have 1193 points and 5/5 brainly trophies but it still wont rank me up to vistro
    11·2 answers
  • What is the most important reason to create a backup of your files somewhere other than your computer
    6·1 answer
  • 50) Universal Containers has an integration that runs nightly to update the Product (Product2) object in Salesforce with updated
    9·1 answer
  • What is the smallest amount of information called?
    13·2 answers
  • Self-contained sequences of actions to be performed are: (1 point)
    14·2 answers
  • The the concept of plug-and-play is demonstrated by which of the following scenarios
    14·2 answers
  • Send me the answers<br>​
    15·1 answer
  • Select the correct answer.
    7·2 answers
  • Can someone tell me how to hit on a link on Brainly to see the answer
    10·2 answers
  • The Freeze Panes feature would be most helpful for which situation?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!