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
Stels [109]
3 years ago
10

Write a program that multiplies two hard-coded numbers, then prints the individual numbers out and prints their product out, all

on separate lines. You can choose the two numbers that are multiplied together.
Computers and Technology
1 answer:
sp2606 [1]3 years ago
5 0

Answer:

Written in Python:

num1 = 10

num2 = 15

print(num1)

print(num2)

print(num1 * num2)

Explanation:

The programs requires that two number be assumed and multiplied.

The program uses num1 and num2 to represent the two numbers (line 1 and line2)

These numbers were then initialized to 10 and 15, respectively (note that, you can replace these numbers with any number of your choice)

The next two lines then print num1 and num2

The last line prints the result of their multiplication

However, line by line explanation is as follows:

<em>This line initializes num1 to 10</em>

num1 = 10

<em>This line initializes num2 to 15</em>

num2 = 15

<em>This line prints num1</em>

print(num1)

<em>This line prints num2</em>

print(num2)

<em>This line prints the product of num1 and num2</em>

print(num1 * num2)

You might be interested in
When is founded by java
Rina8888 [55]
Java was originally developed by James Gosling at Sun Microsystems (which has since been acquired by Oracle) and released in 1995 as a core component of Sun Microsystems' Java platform
1995 the answer
4 0
3 years ago
Read 2 more answers
When should you use an electronic spreadsheet
nadezda [96]

Answer:

An electronic spreadsheet can be used to perform numerical calculations automatically

Explanation:

An electronic spreadsheet can be used to perform numerical calculations automatically. This spreadsheets are set up in the form of a table with rows and columns.

Data is stored in a cell formed as a result of intersection of each row and column.

Their primary purpose is to organize and categorize data into a logical format. This data then can be used to organize and grow the business.

6 0
3 years ago
scientist think that two species with homologous structures probably had ____ A. Ancestor B. Fossil C. Environment D. Offspring
Naddika [18.5K]
The answer is A: ancestor
4 0
3 years ago
Write programs for money exchange. In these programs please:
Gennadij [26K]
D is the right answer I believe so
7 0
3 years ago
PLEASE HELP!!!!!!!!!!
SCORPION-xisa [38]
I don’t know if u tried this yet but maybe acetone can help or vinegar?
8 0
3 years ago
Read 2 more answers
Other questions:
  • Bianca is preparing special dishes for her daughter’s birthday. It takes her a minutes to prepare the first dish, and each follo
    11·1 answer
  • The air in the atmosphere circulates mainly because _____.
    7·2 answers
  • Why is drafting important in every industry
    6·1 answer
  • Every employee of your company has a Google account. Your operational team needs to manage a large number of instances on Comput
    10·1 answer
  • A device in electricity that is analogous to a restriction in a water pipe is:
    11·1 answer
  • Create a program that will read in a Salesperson name, employment status (1=Full-time AND 2=Part-time) and the sales amount.
    5·1 answer
  •  In which part of a professional email should you try to be brief, but highly descriptive? 
    10·1 answer
  • You are working on a project to develop a new or enhanced system to help people at your college, university, or organization to
    9·1 answer
  • Determine what is printed by the following code.
    8·1 answer
  • HELP ASAP 90 Points
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!