hello world in c# code example

Example 1: hello world in c++

#include <iostream>
using namespace std;

int main() {
  cout << "Hello World!";
  return 0;
}

Example 2: hello world in c++

#include <iostream>

using namespace std;

int main()
{
  	cout << "Hello World";
  	return 0;
}

Example 3: hello world in c++

// Your First C++ Program

#include <iostream>

int main() {
    std::cout << "Hello World!";
    return 0;
}

Example 4: hello world in c++

#include <iostream>

int main() {
  std::cout << "Hello World!";
  
  return 0;
}

Example 5: hello world in c++

#include <bits/stdc++.h>

using namespace std;

int main(){
	cout << "hello world! \n"; 
}                                                     //code by goukl aakash

Example 6: hello world in c++

#include<iostream>
using namespace std;
int main(){
  cout<<"hello World"<<endl;
  return 0;
}

Example 7: Hello World in C++

#include <iostream>
int main(){
  std::cout << "Hello World" << std::endl;
  return 0;
}

Example 8: Hello World in C++

#include <iostream>
int main(){
  std::cout << "Hello World" << std::endl;
  return 0;
}

Example 9: hello world in c++

#include <iostream>
int main() {
  std::cout << "Hello World!";
  
  return 0;
}

Example 10: hello world in c++

#include <iostream>


// Anything in the main function will get executed even without calling it.
int main(){
  	// The function cout in the STD or Standard Library will print out stuff to the console.
	std::cout <<"Hello world.";
}

Tags:

Misc Example