├── BASH.sh ├── BFS_in_graph.cpp ├── C++.cpp ├── C.c ├── COBOL.cbl ├── COW.cow ├── Golang.go ├── HelloWorld.adb ├── Hello_world.pl ├── Helloworld.php ├── Java.java ├── JavaScript.js ├── Javascript └── checkIsPalindrome.js ├── Kotlin.kt ├── PostScript.ps ├── Python.py ├── README.md ├── YAML.yml ├── app.js ├── chef.chef ├── factor.factor ├── hello.imba ├── hello_world.zig ├── helloworld.fish ├── helloworld_in_hack.hack ├── lolocode.lol ├── lua.lua ├── mongodb.json ├── notes.js ├── notes.json ├── ocaml.ml ├── package-lock.json ├── package.json └── rust.rs /BASH.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | echo "Shine bright like a diamond!" 3 | -------------------------------------------------------------------------------- /BFS_in_graph.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | using namespace std; 3 | 4 | void graph(int n, int m, vector adj[]) 5 | { 6 | for(int i=0;i>x>>y; 10 | if(x<=n && y<=n) 11 | { 12 | adj[x].push_back(y); 13 | adj[y].push_back(x); 14 | } 15 | } 16 | } 17 | 18 | void traversalbfs(int n, int vis[],queue q, vector&bfs, vector adj[]){ 19 | while(!q.empty()){ 20 | int node=q.front(); 21 | q.pop(); 22 | bfs.push_back(node); 23 | for(auto it:adj[node]){ 24 | if(!vis[it]) 25 | { 26 | vis[it]=1; 27 | q.push(it); 28 | } 29 | } 30 | } 31 | } 32 | 33 | void gprint(int n, vector adj[]){ 34 | for(int i=1;i<=n;i++){ 35 | cout< "; 36 | for(int j=0;j&v){ 45 | for(int i=0;i>n; 54 | int m; 55 | cout<<"No of edges"<>m; 57 | cout<<"Enter nodes b/w edges"< adj[n+1]; 59 | graph(n,m,adj); 60 | int vis[n+1]={0}; 61 | vector bfs; 62 | queue q; 63 | q.push(1); 64 | vis[1]=1; 65 | traversalbfs(n,vis,q,bfs,adj); 66 | print(bfs); 67 | return 0; 68 | } 69 | -------------------------------------------------------------------------------- /C++.cpp: -------------------------------------------------------------------------------- 1 | // Hello World in C++ Program 2 | 3 | #include 4 | using namespace std; 5 | int main() 6 | { 7 | cout << "Hello World!"; 8 | cout << "Hello World! from a contributor"; 9 | return 0; 10 | } 11 | -------------------------------------------------------------------------------- /C.c: -------------------------------------------------------------------------------- 1 | //Hello World in C 2 | #include 3 | int main() { 4 | printf("Hello, World!"); 5 | return 0; 6 | } 7 | -------------------------------------------------------------------------------- /COBOL.cbl: -------------------------------------------------------------------------------- 1 | IDENTIFICATION DIVISION. 2 | PROGRAM-ID. Hello-world. 3 | PROCEDURE DIVISION. 4 | DISPLAY "Hello World". . 5 | -------------------------------------------------------------------------------- /COW.cow: -------------------------------------------------------------------------------- 1 | MoO MoO MoO MoO MoO MoO MoO MoO MOO moO MoO MoO MoO MoO MoO moO MoO MoO MoO MoO moO MoO MoO MoO MoO moO MoO MoO MoO MoO MoO MoO MoO 2 | MoO MoO moO MoO MoO MoO MoO mOo mOo mOo mOo mOo MOo moo moO moO moO moO Moo moO MOO mOo MoO moO MOo moo mOo MOo MOo MOo Moo MoO MoO 3 | MoO MoO MoO MoO MoO Moo Moo MoO MoO MoO Moo MMM mOo mOo mOo MoO MoO MoO MoO Moo moO Moo MOO moO moO MOo mOo mOo MOo moo moO moO MoO 4 | MoO MoO MoO MoO MoO MoO MoO Moo MMM MMM Moo MoO MoO MoO Moo MMM MOo MOo MOo Moo MOo MOo MOo MOo MOo MOo MOo MOo Moo mOo MoO Moo 5 | -------------------------------------------------------------------------------- /Golang.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt"; 4 | 5 | func main() { 6 | 7 | fmt.Println("Hello World!") 8 | } 9 | -------------------------------------------------------------------------------- /HelloWorld.adb: -------------------------------------------------------------------------------- 1 | with Ada.Text_IO; 2 | 3 | procedure Hello_World is 4 | begin 5 | Ada.Text_IO.Put_Line("Hello, World!"); 6 | end Hello_World; 7 | -------------------------------------------------------------------------------- /Hello_world.pl: -------------------------------------------------------------------------------- 1 | $var = "Hacktoberfest2023"; 2 | print "Hello world\n" 3 | print "$var" 4 | -------------------------------------------------------------------------------- /Helloworld.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /Java.java: -------------------------------------------------------------------------------- 1 | //Hello World 2 | public class Hacktoberfest { 3 | public static void main(String[] args) { 4 | System.out.println("Hello, World!"); 5 | System.out.println("Hello, World from a contibutor!"); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /JavaScript.js: -------------------------------------------------------------------------------- 1 | console.log("Hello World"); 2 | console.log("Hello World! from a contributor"); 3 | console.log("Hello world"); 4 | -------------------------------------------------------------------------------- /Javascript/checkIsPalindrome.js: -------------------------------------------------------------------------------- 1 | const isPalindrome = function(x) { 2 | return x == String(x).split("").reverse().join("") 3 | }; 4 | 5 | -------------------------------------------------------------------------------- /Kotlin.kt: -------------------------------------------------------------------------------- 1 | fun main(args: Array){ 2 | println("Hello World") 3 | } 4 | -------------------------------------------------------------------------------- /PostScript.ps: -------------------------------------------------------------------------------- 1 | % run> gs -q -sDEVICE=nullpage postscript.ps 2 | (Hello World\n) print quit 3 | -------------------------------------------------------------------------------- /Python.py: -------------------------------------------------------------------------------- 1 | #Hello World in Python 2 | print(f"Hello, World!") 3 | print(f"Hello, World from this contributor!") 4 | print("Hello,world") 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Hello World 2 | 7 | ### INSTRUCTIONS 8 | - ⭐ Make sure to Star this Repository [![GitHub stars](https://img.shields.io/github/stars/TYehan/Hello-World.svg?style=social)](https://github.com/TYehan/Hello-World) 9 |
(***Not the one you have forked***) 10 | - ⭐ Fork this Repository 11 | - ⭐ Clone your forked repository to your PC. 12 | - ⭐ Create a new branch for your modifications. 13 | - git branch new-user and check it out ```git checkout new-user``` or simply do ```git checkout -b new-user``` 14 | - ⭐ Add your code 15 | - Add your files ```git add -A```, commit ```git commit -m "added myself"``` and push ```git push origin new-user``` 16 | - ⭐ Create a pull request 17 | 18 | ``` 19 | ➡️➡️➡️ If you have done all the above Instructions, your PR will surely be accepted 20 | ``` 21 | #### 💡 If you can't find any new languages try updating the existing codes 22 | #### 💡 You can add Programs other than "Hello World!" in [Programs in different languages](https://github.com/TYehan/HacktoberFest2023-Beginners/tree/main/Programs%20in%20different%20languages) folder 23 |