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
Write a program that utilizes the concept of conditional execution, takes a string as input, and: prints the sentence "Yes - Spa
rodikova [14]

Answer:

<em>Written in Python</em>

inputt = input()

if inputt == "SPATHIPHYLLUM":

     print("Yes - Spathiphyllum is the best plant ever!")

elif inputt == "spathiphyllum":

     print("No, I want a big Spathiphyllum!")

else:

     print("Spathiphyllum! Not"+ inputt+"!")

Explanation:

This line gets user input

inputt = input()

This line checks if input is uppercase SPATHIPHYLLUM and executes the corresponding print statement, if true

if inputt == "SPATHIPHYLLUM":

     print("Yes - Spathiphyllum is the best plant ever!")

This line checks if input is uppercase spathiphyllum and executes the corresponding print statement, if true

elif inputt == "spathiphyllum":

     print("No, I want a big Spathiphyllum!")

If user input is not upper or lower case of Spathiphyllum, the following if condition is considered

else:

     print("Spathiphyllum! Not"+ inputt+"!")

4 0
4 years ago
How is ( a || b ) &amp;&amp; c || ( a || b ) &amp;&amp; ( ! c ) equal to ( a || b ) without simplification?
kogti [31]

Answer: You can see the truth table in the image.

Explanation:We can do this question by using truth table.

As we can see in the truth table that there is no effect on the output of the expression by c if a and b both are false then the output is false and if any of them is True or both of them are True then the result is True.

8 0
3 years ago
Businesses that conduct telemarketing are required to access the Do-Not-Call Registry every _______ in order to maintain an upda
densk [106]

Businesses that conduct telemarketing are required to access the Do-Not-Call Registry every 31 days in order to maintain an updated database of people.

<h3>What telemarketing firms do?</h3>

The act of telemarketing is known to be the act talking to potential or existing customers through the use of a telephone.

Conclusively, Note that Telemarketing can help a business firm to promote or boast their products or services, make their customer database stronger, bring about a lot of leads and appointments and others.

Learn more about telemarketing from

brainly.com/question/25974538

6 0
3 years ago
From MCYT who was the the one who said "SUCK IT GREEN BOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOY"
Papessa [141]

Answer:

Tommyinnit

Explanation:

8 1
3 years ago
Read 3 more answers
A developer wants to take existing code written by another person and add some features specific to their needs. Which of the fo
anzhelika [568]

Answer:

open-source

Explanation:

open-souce software allows any user to submit modifications of the source code

7 0
3 years ago
Other questions:
  • What device did vladimir Zworykin use to develop television technology that resulted in the technology shifting from a mechanica
    13·1 answer
  • When using a graphics editing program, which option allows you to adjust the space around an image?
    15·1 answer
  • Effective resource management: a. Locks out unauthorized access and can work to prevent changes to resources by internal users n
    8·1 answer
  • Why do you think Google+'s engagement levels are so low? Do you think they will rise as people become more familiar with the soc
    12·1 answer
  • Which item is used in Excel to identify the row of a particular cell? letter number type sheet
    6·2 answers
  • Ssume that the timeout values for all three protocols
    8·1 answer
  • What are the basic features of Usenet group
    15·1 answer
  • /* Write a method called fractionSum that accepts an integer parameter n and
    5·1 answer
  • I still haven't figured out how to award someone branliest will someone help me? If you explain to me how to do it i will do awa
    14·1 answer
  • 1.Blocul care asigura impedanta necesara la intrarea aparatului de masurat numeric este:
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!