This repository has been archived by the owner on Oct 23, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hello_World in different Programming Languages
This Program prints Hello World in different Programming Languages.
- Loading branch information
1 parent
bf04607
commit 91a0d92
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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." ; | ||
} | ||
} |