Answer:
The program is as follows:
<em>5 INPUT A,B</em>
<em>6 PROD = A * B</em>
<em>7 PRINT PROD</em>
<em>8 TOTAL = A + B</em>
<em>9 PRINT TOTAL</em>
<em>10 DIFF = A - B</em>
<em>11 PRINT DIFF</em>
<em>12 END</em>
Explanation:
This gets input for the two numbers
<em>5 INPUT A,B</em>
This calculates the product
<em>6 PROD = A * B</em>
This prints the calculated product
<em>7 PRINT PROD</em>
This calculates the sum
<em>8 TOTAL = A + B</em>
This prints the calculated sum
<em>9 PRINT TOTAL</em>
This calculates the difference
<em>10 DIFF = A - B</em>
This prints the calculated difference
<em>11 PRINT DIFF</em>
This ends the program
<em>12 END</em>
I guess the best answer is Virus.
Virus is a malicious computer program that is designed to create annoying glitches or destroy data.
What do you mean ? I’m confused..
Answer:
Superscript or Subscript
Explanation:
The superscript or the subscript is a type of character which is set a little lower or more than the normal line of type. And it is generally small as compared to the other texts. The subscript does appear at or less than the baseline, and the superscript is above. And for the superscript, you need to press the Ctrl + Shift + + ( press and at the same time also hold the Ctrl and the Shift, and finally press the +). And for the subscript, you need to press the Ctrl + Shift ++(Press and at the same time also hold the Ctrl. and finally press the =). And pressing the corresponding shortcut once again, you will be back to the normal text.
Answer:
speed = float(input("Enter the speed: "))
hours = int(input("Enter the hours: "))
distance = 0
for i in range(hours):
distance += speed * 1
print("The distance after " + str(i+1) + ". hour(s): " + str(distance))
Explanation:
*The code is in Python.
Ask the user to enter the speed and the hours
Initialize the distance as 0
Create a for loop that iterates hours times. Inside the loop, calculate the cumulative distance traveled at the end of each hour and print it (Note that the distance = speed x hour)