The best way to learn a programming language is by writing programs.
Typically, the first program beginners write is a program called "Hello
World", which simply prints "Hello World" to your computer screen.
Although it is very simple, it contains all the fundamental components
C++ programs have==
Output: Hello world!
// my first program in C++
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World!";
}
Output: Hello world!
No comments:
Post a Comment