Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

Commit

Permalink
Hello_World in different Programming Languages
Browse files Browse the repository at this point in the history
This Program prints Hello World in different Programming Languages.
  • Loading branch information
nileshhalge committed Oct 17, 2018
1 parent bf04607 commit 91a0d92
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions CPP Programs/Hello_World.cpp
@@ -0,0 +1,51 @@
#include<iostream>

using namespace std ;
int main()
{
int a ;

cout << "\n1.C\n2.C++\n3.Python\n4.Java\n5.Ruby\n6.Clipper\n7.C#" ;
cout << "\n8.Bash\n9.jQuery\n10.Swift\n";
cout << "Enter Your Choice : " ;
cin >> a ;
switch(a)
{
case 1 :
cout << "#include<stdio.h>\nint main()\n{\n\tprintf(\"Hello world\");\n}";
break ;
case 2 :
cout << "#include<stdio.h>\nint main()\n{\n\tcout << \"Hello World \";\n}";
break ;
case 3 :
cout << "print \"Hello World\"";
break ;
case 4 :
cout << "class A {\npublic static void main(String args[]){\n";
cout << "System.out.println(\"Hello World);\n}\n}";
break ;
case 5 :
cout << "puts(\"Hello World\")";
break ;
case 6 :
cout << "? \"Hello World\"";
break ;
case 7 :
cout << "using System;\nclass Program\n{\n";
cout << "public static void Main(string[] args)\n";
cout << "{\nConsole.WriteLine(\"Hello, world\");\n}\n }";
break ;

case 8 :
cout << "echo \"Hello World\"";
break ;
case 9 :
cout << "$(\"body\").append(\"Hello world!\");";
break ;
case 10 :
cout << "println(\"Hello, world!\")" ;
break ;
default :
cout << "Invalid choice." ;
}
}

0 comments on commit 91a0d92

Please sign in to comment.