Write a program snippet to print "hello world " on the screen.which type of method does it use
joshihimanshu46:
i java
Answers
Answered by
16
hey buddy,
#include
#include
int main(void)
{
printf("Hello, world");
return EXIT_SUCCESS;
}
it is in C language
#include
#include
int main(void)
{
printf("Hello, world");
return EXIT_SUCCESS;
}
it is in C language
Answered by
1
Write a program snippet to print "hello world " on the screen is described below:
// This is a simple Java program.
// FileName : "HelloWorld.java".
class HelloWorld
{
// Your program begins with a call to main().
// Prints "Hello, World" to the terminal window.
public static void main(String args[])
{
System.out.println("Hello, World");
}
}
- This is the following Program.
Here Java language is used
- One of the most well-liked and commonly used programming languages and platforms is Java. Java is quick, dependable, and secure. From desktop to online applications, scientific supercomputers to gaming consoles, mobile devices to the Internet, Java is utilised everywhere.
- The syntax of Java is clear and concise, making it simple to learn. It is built on C++, making it simpler for programmers who are familiar with that language.
- Three steps can be used to condense the Java programming process.
- Write the programme in a text editor, then save it as HelloWorld.java.
- Type "javac HelloWorld.java" to compile it in the terminal window.
- By entering "java HelloWorld" in the terminal window, you can execute (or run) it.
Hence, this is the following Program to print Hello World .
#SPJ3
Similar questions