Saturday, 28 February 2015

C ++ program to print hello world without using semicolon




Solution: 1

#include<iostream>
using namespace std;
void main()
{
if(cout<<"Hello World!")
{
}
}

Solution: 2

#include<iostream>
using namespace std;
void main()
{
while(cout<<"Hello World!")
{
break;
}
}

If You Enjoyed This, Take 5 Seconds To Share It