C++ User Input

The cin is used in C++ for User Input.  It is used to read the data input by the user on the console. Let us see an example C++ program to get input from the user.

C++ program to print a string entered by the user

Let us see an example to print a string entered by the user:

Output

C++ program to print numbers entered by the user

Let us see an example to multiply 3 numbers entered by the user:

Output

C++ Variables
C++ Structures
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment

Discover more from Studyopedia

Subscribe now to keep reading and get access to the full archive.

Continue reading