001-002-013

Subtraction Assignment

Easy

Problem Description

Subtraction Assignment

In this problem, you will create a program that uses the subtraction assignment operator (-=) to subtract a value from an integer variable and displays the result to standard output.

Learning Objective: Understand the basics of subtraction assignment

Overview

Implement subtraction assignment and display the result.

Output Format

Result: 7

Ready to Try Running Code?

Log in to access the code editor and execute your solutions for this problem.

Don't have an account?

Sign Up