"Every person should know how to program a computer because it teaches to think" (Steve Jobs)
List of programming Languages, we will be working with:- Java
- C++
- PHP
- C
- Perl
- C#
- Kotlin
- Visual Basic .Net
- Python
- Go
- Pascal
- JavaScript
- Ruby
- Swift
- Objective C
- Asp.NET
- MATLAB
- F#
- Fortan
- Groovy
Are you ready to get started? Let's Begin!
1. Java Program:
- Public class anything{Public static void main(String[] args) {//Your program begins with a call to main()// Prints "Hello World " to the terminal windowSystem.Out.println(" Hello World ");}}
2. C++ Program:
- #include <iostream>using namespace anything;int main() {count << " HelloWorld ";return 0;}
3. PHP Program:
- <?php
- // Prints to the screenecho "HelloWorld ";?>
4. C Program:
- #include <stdio.h>int main() {//printf() displays the string inside quotationprintf(" HelloWorld ");return 0;}
5. Perl Program:
- #1/usr/bin/env perluser strict;use warnings;
// Prints to the screen print " HelloWorld \n ";print 42, "\n";
6. C# Program:
- using Systems;namespace anything{class program{static void Main() {Console.WriteLine(" Hello World ");//Keeps the console window open in debug modeConsole.WriteLine(" Press any key ");Console.ReadKey();}}}
7. Kotlin Program:
- fun main(args: Array<String>){println(" HelloWorld ")}
8. Visual Basic .NET Program:
- public Module programpublic Sub Main()// Prints to the screenSystem.Console.WriteLine(" Hello World ")End SubEnd Module
9. Python Program:
- // Prints to the screen
- Print(" HelloWorld ")
10. GO Program:
- package mainimport "fmt"func main(){fmt.Println(" HelloWorld ")}
11. Pascal Program:
- program pascal(output);beginwriteln(" HelloWorld ");end
12. JavaScript Program:
- <script>console.log(" HelloWorld ");</script>
13. Ruby Program:
- puts valueputs (" HelloWorld ")
14. Swift Program:
- var name : String = " HelloWorld "print("We are printing, name")
15. Objective C Program:
- #Import <Foundation/Foundation.h>int main(){NSString *printing= @" Hello World ";NSLog(@"Greeting message: %@\n, printing ");return 0;}
16. ASP.NET Program:
// Working done in Razor Views
<%
text = " Hello World "Response.Write(text)- %>
17. MATLAB Program:
// Prints to the screen
fprintf(' Hello World ')
18.
F#
Program:
F#
Let print = " Hello World "
Let callMe = printfn print
19. Fortan Program:
- Program PrintImplicit nonewrite(*,*) " Hello World "end Program
20. Groovy Program:
#include <stdio.h>
int main()
{
Class printProgram
- {static void main(String[] args) {println " Hello World "}
}
0 Comments
Your comments and interesting view make our day!