Skip to content

video not played or not found error
click on direct switch

Hosted by Dailymotion. For legal issues: Copyright Center · DMC · Instant Removal

How to Print Number Entered by User | C++ Examples

S
Sami Tadros

66 Views • Mar 09, 2023

Description

In this example, you'll learn to print the number entered by a user using a C++ cout statement.

This program asks the user to enter a number.
When the user enters an integer, it is stored in the variable number using cin.
Then it is displayed on the screen using cout.