Thursday, June 18, 2015

Input Statement (cin) in C++



cin (console input) –  It is used to read/input value of variables from the keyboard.
Syntax :-
cin >> variable_name;
Ex: -
cin >> a;
where >>is known as extraction or get from operator.

  cin >> a
  where a is variable.