From 320a9bf87e86aa6ff4843339dabc11d27e8df4ba Mon Sep 17 00:00:00 2001 From: Rasesh Srivastava Date: Wed, 2 Oct 2024 00:27:01 +0530 Subject: [PATCH] Added code in C, C++, Java and Ruby --- hello_world.c | 5 +++++ hello_world.cpp | 5 +++++ hello_world.java | 5 +++++ hello_world.rb | 1 + 4 files changed, 16 insertions(+) create mode 100644 hello_world.c create mode 100644 hello_world.cpp create mode 100644 hello_world.java create mode 100644 hello_world.rb diff --git a/hello_world.c b/hello_world.c new file mode 100644 index 0000000..b9e0623 --- /dev/null +++ b/hello_world.c @@ -0,0 +1,5 @@ +#include +int main() { + printf("Hello, World!\n"); + return 0; +} \ No newline at end of file diff --git a/hello_world.cpp b/hello_world.cpp new file mode 100644 index 0000000..a74cccd --- /dev/null +++ b/hello_world.cpp @@ -0,0 +1,5 @@ +#include +int main() { + std::cout << "Hello, World!" << std::endl; + return 0; +} \ No newline at end of file diff --git a/hello_world.java b/hello_world.java new file mode 100644 index 0000000..ae3abfc --- /dev/null +++ b/hello_world.java @@ -0,0 +1,5 @@ +public class hello_world { + public static void main(String[] args) { + System.out.println("Hello, World!"); + } +} \ No newline at end of file diff --git a/hello_world.rb b/hello_world.rb new file mode 100644 index 0000000..d511756 --- /dev/null +++ b/hello_world.rb @@ -0,0 +1 @@ +puts "Hello, World!" \ No newline at end of file