how to print hello code example

Example 1: c hello world

#include <stdio.h>

int main() {
   printf("Hello, world!");
   return 0;
}

Example 2: python hello world

print("Hello World")

Example 3: print hello world in java

public class Hello
{
  	public static void main(String[] args)
    {
      /*Tip System.out.println(); shortcut Type 'sysout'and press Tab */
      System.out.println("Hello world!");
    }
}

Example 4: hello word c

#include <stdio.h>
int main() {
   // printf() displays the string inside quotation
   printf("Hello, World!");
   return 0;
}

Example 5: java code to print hello world

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

Tags:

Java Example