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
marissa [1.9K]
3 years ago
13

Write algorithm to calculate sum and difference of any two numbers​

Mathematics
2 answers:
bazaltina [42]3 years ago
6 0

Answer:

(step 1 and 2 help clarify the rest of the steps)

first Declare 2 variables →a ,b.

input 2 variables a and b.

print sum=a+b.

print difference = a-b.

print product =a×b.

Step-by-step explanation:

Hope this helps a little :)

STatiana [176]3 years ago
3 0

BEGIN

DECLARE VARIABLES X, Y

 INPUT VARIABLES X, Y

  READ X, Y

    PRINT SUM = X+Y

    PRINT DIFFERENCE = X-Y

END

 

You might be interested in
What is the distance apart (-6, -4.7) and (-6, 4.1)
kenny6666 [7]

Answer:

8.8

Step-by-step explanation:

Normally, to find the distance between two points, you would use the distance formula, but these two points have the same x-coordinate, meaning they will form a vertical line when connected. To find the length of a vertical line you find the distance between the y-coordinates, in this case -4.7 and 4.1. Finding the distance is the same as finding the absolute value of the difference:

|4.1 -(-4.7)|

|4.1 + 4.7|

|8.8|

8.8

7 0
3 years ago
Review (Monday)
AlekseyPX

Answer:

2.48

Step-by-step explanation:

For each gallon she got she paid $2.48. I know this by doing 34.72 divided by 14 which got me the answer of $2.48.

5 0
3 years ago
Read 2 more answers
(5)
sergij07 [2.7K]

Answer:

7

Step-by-step explanation:

8 0
3 years ago
Three consecutive composite numbers
Ad libitum [116K]

Answer:

14,15,16

Consecutive number are numbers who's difference is 1.

Composite numbers are those numbers which are not prime.Hence thre consecutive composite numbers are 14,15,16..

8 0
3 years ago
Which of the following expressions represents a function?
PSYCHO15rus [73]
A function can have one x-value for each y-value Or even, two difference x-values for one y-value.

And out of the four options, only A and C represent a function. The other two options have the same x value for two y-values.

One way to test if it is a function is by the vertical line test.
7 0
3 years ago
Other questions:
  • Help, I don't understand.
    15·1 answer
  • Need help with math...
    14·1 answer
  • 4=36/5 +c what is c?
    7·2 answers
  • Solve the quadratic function by completing the square. What are the missing pieces in the steps?
    8·1 answer
  • (-6ab-7a+2) - (-2ab+8)<br> Helpppp
    8·1 answer
  • Triangle ABC is a right triangle. If AC =7 and BC=8, find AB . Leave your answer in simplest radical form.
    9·1 answer
  • Pls Help! Which one is suppose to go in the box?
    7·2 answers
  • Plz plz help me for math
    11·1 answer
  • Can someone please help me.
    13·2 answers
  • Jose swims 3 laps in a pool every 2 minutes how long would it take jose to swim 27 laps
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!