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:
Output:
Related Articles:
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:
Related Articles:
1 Questions:
This C ++ Tutorial will make coding in C++ easy for you. You will realize how easy C++ Language is!
Post a Comment