algorithm for hello world in c code example
Example 1: Write a program that prints "Hello World" to the screen
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
Example 2: c hello world
#include <stdio.h>
int main() {
// printf() displays the string inside quotation
printf("Hello, World!");
return 0;
}