Program in C.
/* Hello World program */
#include<stdio.h>
main()
{
printf("Hello World");
Since we're on a Mac, the command in the terminal is:
}
gcc -o helloworld helloworld.c
Program in Java
class HelloWorldApp{
public static void main(String[] args) {
System.out.println("Hello World!"); // Display the string.
}
}byte compile the Java code:
javac HelloWorldApp.java
Run it:
java HelloWorldAppPython
print ("Hello World")
No comments:
Post a Comment