Fundamental Programming and Algorithm Lessons: C++ Inputs and Outputs 1

 C++

Inputs and Outputs 1

Login

    Today we are going to learn how can we get input from keyboard and how can we show it on screen..

Code

  • cout<<"text" : Computer display what did you write after <<.
  • cin>>veriable: Computer get a value from keyboard and chance value of veriable.
Note: Cout command can display but it can not create new line. That's way you can typ "\n" where you want to go to new line. Or add endl

Example




Comments