Variables & Comments in C++

 #include<iostream>

using namespace std;
// This program is about Variables and Comments in C++
/*This
is
a
multiline
comment*/
int main()
{
    int sum = 6;
    cout<<"Hello World"<<sum;
    return 0;
}

OUTPUT:
PS D:\C++> cd "d:\C++\" ; if ($?) { g++ tut3.cpp -o tut3 } ; if ($?) { .\tut3 } Hello World6 PS D:\C++>

Comments

Popular posts from this blog

Control Structures, If Else and Switch Case Statements in C++

Basic Input/Output & More in C++