Question: Problem #1 : Write a code that will allow the user to select two integers that will be multiplied together. The code should include print

Problem #1: Write a code that will allow the user to select two integers that will be multiplied together. The code should include print functions when selecting the integers and displaying the answer.

  1. Declare the variables that will be used in the code. (Hint: There will be three variables)
    • Write the variables that will be used below.

  1. Use the printf command and write a line of code that will display a message that prompts the user to enter the first integer.
    • Write the line of code used in the space below
  2. Use the scanf command to read the integer that the user writes.
    • Write the code in the space provided.

  1. Repeat steps two and three for the second integer.
    • Write the two lines of code in the space provided.

  1. Write an assignment statement that shows the relationship between the two integers and the product.
    • Write the line of code in the space provided.

  1. Write the final line of code that will display the answer to the arithmetic problem.
    • Write the final line of code in the space below.

** Answer must be typed not written in a paper**

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!