001-005-014
Copying Value Between Variables
Easy
Problem Description
Copying Value Between Variables
In this problem, you will create a program that declares an integer variable original with value 50, copies its value to another variable copy, and displays both values to standard output.
Learning Objective: Understand how to copy a value from one variable to another
Overview
Declare an integer variable original with value 50, copy its value to another variable copy, and output both values.
Specifications
- Initialize variable
originalwith 50 - Assign the value of
originalto variablecopy - Output both variable values
Output Format
Original: 50
Copy: 50
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