969 views
5 votes
Urgent help
Write a program that prints ‘Hello World’ to the screen

User Daud Arfin
by
6.2k points

2 Answers

4 votes
class newprog
{
public static void main()
{

System.out.println("Hello world");
}
}
User Emilio Platzer
by
5.9k points
6 votes


\huge{\purple{\underline{\underline{\mathfrak{\red{\bigstar Java:: \bigstar}}}}}}

public class Main {

public static void main(String [] args) {

System.out.println("Hello World");

}

}


\gray{\rule{300pt}{0.4em}}


\huge{\purple{\underline{\underline{\mathfrak{\red{\bigstar Python:: \bigstar}}}}}}

print('Hello World')


\gray{\rule{300pt}{0.4em}}


\huge{\purple{\underline{\underline{\mathfrak{\red{\bigstar C++:: \bigstar}}}}}}

#include <iostream>

using namespace std;

int main() {

cout << "Hello World";

return 0;

}


\gray{\rule{300pt}{0.4em}}

Hope it helps..

User ChrisCrossCrash
by
6.6k points