001-006-013

Long to Int

Easy

Problem Description

Long to Int

In this problem, you will create a program that casts a long value to an int type and displays the result to standard output.

Learning Objective: Understand the basics of long to int

Overview

Store a value in a long variable, convert it to an int type using an (int) cast, and display the result.

Output Format

Int: 1000000

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