#1000 - URI Online judge solution 1000 in C, C++, Java, PHP, Python, Javascript, C#

Algorithm


  1. Just Print Hello World.
  2. After Hello World print, add new line to reduce presentation error.

Code Examples

#1 Code Example with C Programming

Code - C Programming

#include <stdio.h>
 
int main() {
 
    printf("Hello World!\n");
    
    return 0;
}
Copy The Code & Try With Live Editor

Output

x
+
cmd
Hello World!

#2 C# Code Example for URI #1000

Code - C++ Programming

using System; 

class URI {

    static void Main(string[] args) { 

        Console.WriteLine("Hello World!");

    }

}
Copy The Code & Try With Live Editor

Output

x
+
cmd
Hello World!

#3 Go Lang Solution of URI 1000 - Hello World

Code - Python Programming

package main
 
import (
    "fmt"
)
 
func main() {

    fmt.Print("Hello World!\n")

}
Copy The Code & Try With Live Editor

Output

x
+
cmd
Hello World!

#4 Code Example with PHP Programming

Code - PHP Programming

Copy The Code & Try With Live Editor

Output

x
+
cmd
Hello World!

Demonstration


It's a simple function to just print a string.

It'll just print the Hello World! String to the output.

 

So, we need to know only how to print in any programming languages and we can solve it then.