C++ Program:

- To take users input & print

Example:

User Input: 12

Output: 12

#include <iostream>
using namespace std;

int main() {
  int num;
  cout<<"Enter a number :";
  cin>>num;
  cout<<"You entered : "<<num;
  return 0;
}

Output:

  Enter a number : 121
  You entered : 121
Program
basic
cin>>variableName;  //to take user input
cout<<variableName;  //to print variable

To take input, use cin>> to store your input inside a variable and

to show the variable in the output screen just use cout<< (type variableName after it)

Concept

Coming Soon !

Quick
Tutorial

Quote

Make bold choices and make mistakes. It’s all those things that add up to the person you become.