Cpp Basic 50: Input cin

11 January 2020, 1:03 am by antelove19

C++ programming language

C++ programming language



Happy Coding


main.cpp

/* ------------------------------------------------------------ */
/*  Input                                                       */
/*  Using cin                                                   */
/*                                                              */
/*  Author: antelove                                            */
/*  Website: antelove.com                                       */
/* ------------------------------------------------------------ */

#include <iostream> // standar input output library

using namespace std;

int main()
{

    char input;

    cout << "Type a letter: "; 

    cin >> input;

    cout << "You typed: " << input;

    return 0;

}

Thank for reading :)



No Action Title
1 Live
2 Editor
0 comment