Sunday, 7 February 2016

Write a C++ program that displays your name and address

Leave a Comment
Questions:

Write a C++ program that displays your name and address (or if you value your privacy, a fictitious name and address)

Explanation:

This problem is simple and just demonstration of basic console out operation.  Below mention code is compiled in Visual Studio 2015 and output snap is attached.. If any problem you feel and want explanation feel free to contact.

Code:

/**************************************************|
/*************C++ Programs And Projects************|
***************************************************/

#include<iostream>
using namespace std;

void main() {
       cout << "Name :: John" << endl
              << "Address :: House#12 LA Streat New York" << endl;
}

Output:
Write a C++ program that displays your name and address


Related Articles:

C++ Books Solution

If You Enjoyed This, Take 5 Seconds To Share It