divider

Objective

Obtain some numbers from a user and perform simple arithmetic calculations using their input.

Skills to Practice

  • icon Prompting a user for input
  • icon Performing arithmetic
  • icon Formatting text output
divider

Tasks

  • icon Create a new project named sprint-1-5
  • icon Complete the following tasks:
    • icon Prompt the user to enter two numbers.
    • icon Perform the following operations with the input:
      • icon Addition
      • icon Subtraction
      • icon Multiplication
      • icon Division
    • icon Display the result of each operation.
divider

Sample Output

Sample Output
Enter the first number: 10 [Enter]
Enter the second number: 2 [Enter]
10 plus 2 equals 12
10 minus 2 equals 8
10 times 2 equals 20
10 divided by 2 equals 5

Begin Sprint