Write a program to print hello world

Write a program to print hello world.

Example:

 
Output: Hello World!

Approach

C

#include <stdio.h>
int main()
{
    printf("Hello World!");
    return 0;
}

Java

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World!!");
    }
}


No comments:

Post a Comment