0% found this document useful (0 votes)
23 views

C++ Hello World #Include Using Namespace STD Int Main (Cout "Hello WORLD" Return 0

This document contains code for simple "Hello World" programs in both Java and C++. The Java program defines a class with a main method that uses System.out.println to display the text "Hello World". The C++ program includes the iostream header, uses cout to display "Hello WORLD", and returns 0 to indicate successful execution.

Uploaded by

abhi kr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

C++ Hello World #Include Using Namespace STD Int Main (Cout "Hello WORLD" Return 0

This document contains code for simple "Hello World" programs in both Java and C++. The Java program defines a class with a main method that uses System.out.println to display the text "Hello World". The C++ program includes the iostream header, uses cout to display "Hello WORLD", and returns 0 to indicate successful execution.

Uploaded by

abhi kr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

HELLO WORLD PROGRAM IN JAVA

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

C++ HELLO WORLD


#include<iostream.h>
Using namespace std;
int main()
{
cout<<Hello WORLD;
return 0;

You might also like