Exercise 2: Taking Inputs From Widget
In this exercise, we'll help you get familiar with taking input arguments from terminal using the cin command
We'll cover the following
C++ input
The basic syntax for taking input from user is given below:
cin >> variableName;
RUN the code given below, enter the value of the num
on the console and then press the enter
button:
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy