Skip to content

Create HelloWorld.md #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
341 changes: 341 additions & 0 deletions HelloWorld.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,341 @@
# Format

## Programming Language Name

```bash
######################################
########### Code goes here ###########
######################################
```

`Output`

**Majority of the programmes are Hello World programmes except some**


## Programming Languages:

### [![Python](https://img.shields.io/badge/--171717?logo=python)](https://www.python.org&style=plastic) Python

```python
name ="Jaipal"
print(f"Hello, my name is {name}")
```

`Hello, my name is Jaipal`


### [![Bash](https://img.shields.io/badge/--000?logo=powershell&style=plastic)](https://www.gnu.org) Bash

```bash
$ name = $"Jaipal";
$ echo "Hello World\nI am "$name;
```

```bash
Hello World
I am Jaipal
```


### [![Java](https://img.shields.io/badge/Java-49f?logo=java&style=plastic)](https://java.com/en/) Java

```java
import java.util.*;
public class main() {
public static void main(String[] args) {
System.out.println("Choose one option: \n1.Sphere \n2.Cube \n3.Cuboid \n4.Cylinder");
System.out.print("Enter your choice(1-4): ")
Scanner scan = new Scanner(System.in);
int number = scan.nextInt()
switch (number) {
case 1:
System.out.println("You have selected Sphere");
break;
case 2:
System.out.println("You have selected Cube");
break;
case 3:
System.out.println("You have selected Cuboid ");
break;
case 4:
System.out.println("You have selected Cylinder ");
break;
default:
System.out.println("Invalid option");
break;
}
}
}
```

```bash
$ javac file_name.java
$ java file_name
Choose one option:
1.Sphere
2.Cube
3.Cuboid
4.Cylinder
Enter your choice(1-4): 1
You have selected Sphere
```


### [![C](https://img.shields.io/badge/--000?logo=c)](https://www.iso.org/standard/74528.html) C

```c
# include <stdio.h>
void main() {
printf("Hello World");
return 0;
}
```

`Hello World`


### [![C++](https://img.shields.io/badge/--ff9?logo=cplusplus&logoColor=05f&style=plastic)](https://cplusplus.com/) C++

```cpp
# include <iostream>
# include <string>
int main() {
std::string name;
std:: cout << "Enter your name: ";
std::cin >> name;
std::cout << "So, your name is " << name << std::endl;
return 0;
}
```

```bash
$ g++ -o any_name file_name.cpp;
$ ./any_name
Enter your name: Jaipal
So, Your name is Jaipal
```


### [![C#](https://img.shields.io/badge/--fff?logo=csharp&logoColor=70f&style=plastic)](https://learn.microsoft.com/en-us/dotnet/csharp/) C#

```csharp
using System;
namespace Hello{
class welcome{
static void Main(String[] args) {
Console.WriteLine("Hello World");
}
}
}
```

`Hello World`


### [![TypeScript](https://img.shields.io/badge/--3178C6?logo=typescript&logoColor=ffffff&style=plastic)](https://www.typescriptlang.org/) TypeScript

```typescript
console.log("Hello World");
```

`Hello World`


### [![JavaScript](https://img.shields.io/badge/--F7DF1E?logo=javascript&logoColor=000&style=plastic)](https://www.javascript.com/) Javascript

```javascript
let name= "Jaipal";
console.log(`Hello World\nI am ${name}`);
```

```bash
Hello World
I am Jaipal
```


### [![PHP](https://img.shields.io/badge/--fff?logo=php&logoColor=000&style=plastic)](https://www.php.net) PHP

```php
<?php
echo "Hello World";
?>
```

`Hello World`


### Scala

```scala
object HelloWorld extends App{
printIn("Hello World");
}
```

`Hello World`


### Matlab

```matlab
disp("Hello World");
```

`Hello World`


### CoffeeScript

```coffee
console.lof "Hello World";
```

`Hello World`


### Dart

```dart
main() {
print("Hello World");
}
```

`Hello World`


### [![Ruby](https://img.shields.io/badge/--fff?logo=ruby&logoColor=a00&style=plastic)](https://www.ruby-lang.org) Ruby

```ruby
puts "Hello World";
```

`Hello World`


### Pascal

```pas
program Hello;
begin
writeln("Hello World");
end
```

`Hello World`


### [![Assembly](https://img.shields.io/badge/ASM-fff?style=plastic)](https://en.m.wikipedia.org/wiki/Assembly_language) Assembly

```asm
global _main
extern _printf
section .text
_main:
push message
call _printf
add esp, 4
message:
db "Hello World" 12, 0
```

`Hello World`


### [![R](https://img.shields.io/badge/--000?logo=r&style=plastic)](https://www.r-project.org) R

```r
cat("Hello World")
```

`Hello World`


### [![Rust](https://img.shields.io/badge/--000?logo=rust&logoColor=b66&style=plastic)](https://www.rust-lang.org) Rust

```rs
fn main() {
println!("Hello World");
}
```

`Hello World`


### [![Swift](https://img.shields.io/badge/--000?logo=swift&logoColor=fff&style=plastic)](https://www.swift.org) Swift

```swift
println("Hello World");
```

`Hello World`


### [![Kotlin](https://img.shields.io/badge/--FFF?logo=kotlin&style=plastic)](https://www.kotlinlang.org) Kotlin

```kotlin
fun main(args: Array<String>) {
println("Hello World")
}
```

`Hello World`


### GO

```go
println("Hello World");
```

`Hello World`


### Perl

```perl
print "Hello World";
```

`Hello World`


### TCL

```tcl
puts "Hello World"
```

`Hello World`


## Non Programming Languages:

### HTML

```html
<!DOCTYPE html>
<html>
<head>
<title>Hello World</title>
</head>
<body>
<p>Hello World</p>
</body>
</html>
```

`Hello World`


### CSS

```css
.div:hover{
content: "Hello World";
}
```

`Hello World`