1#include <iostream>
2
3int main() {
4 std::cout << "Hello, World!"; // prints 'Hello, World!' to the output.
5 return 0;
6}
1#include <iostream>
2using namespace std;
3
4int main(){
5 cout<<"Hello World!"<< endl; // prints "Hello World"
6 return 0;
7}
1/*there are 2 ways of doing it.*/
2#include <iostream> // including the main thing needed
3int main(){
4 std::cout << "Text here.";
5 //you could put using namespace std; so you just have to do
6 cout << "Text Here.";
7 //this isnt reccomended though.
8 printf("hi");
9 //is also an option.
10 return 0;
11}