Saturday, October 24, 2020

Cout and Cin in C++

 In this tutorial I will show you how to use the cout and cin commands in C++ programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.


My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.




My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod City I also accepting computer repair, networking and Arduino Project development at a very affordable price.





Program Listing

// cout_cin.cpp
// Jake Rodriguez Pomperada, MAED-IT, MIT
// www.jakerpomperada.blogspot.com / www.jakerpomperada.com
// jakerpomperada@gmail.com
// Bacolod City, Negros Occidental Philippines

#include <iostream>

using namespace std;

int main()
{
    string user_name;
    int age = 0;

    cout <<"\n";
    cout <<"\t\tCout and Cin in C++\n\n";
    cout <<"\t  Jake R. Pomperada,MAED-IT,MIT";
    cout <<"\n\n";
    cout << "\tWhat is your name? : ";
    cin >> user_name;
cout << "\tWhat is your age?  : ";
cin >> age;
cout <<"\n\n";
    cout <<"\tHello " << user_name <<
         " your age is " << age << " years old.";
    cout <<"\n\n";
    cout <<"\tEnd of Program";
    cout <<"\n";
}



No comments:

Post a Comment