answersLogoWhite

0

Hello world program

Updated: 12/12/2022
User Avatar

Wiki User

15y ago

Best Answer

A "Hello world" program is usually the very first program you write when learning a new programming language, it simply prints out the text "Hello World". Below are a few examples:

PHP:

echo "Hello World";

_____________________________________

JavaScript:

document.write("Hello World");

_____________________________________ Visual Basic:

Module Hello

Sub Main()

MsgBox("Hello, World!") ' Display message on computer screen.

End Sub

End Module

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Hello world program
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is hello world?

Hello world is the canonical program that all programming languages use to introduce new programmers to the language. The program simply prints the text "Hello world" via console output and helps programmers quickly identify the key difference in each specific language's implementation of that program.


Give an example of computer program?

A C program #include <stdio.h> int main() { printf("Hello, world!"); }


Can you give an example of a basic 'Hello World' program?

#include<iostream> int main() { std::cout << "Hello world!" << std::endl; return(0); }


How do you write simple C program?

The same way we do it in every other programming language: we start with the canonical "hello world" application: #include<stdio.h> int main (void) { printf ("Hello world!\n"); return 0; } Every other C program is merely an extension of the hello world application.


How do you write a program in c?

Writing a program in C is not a difficult task. You simply need to have a compiler or an editor supporting the syntax defined in the C Standard. An example of the "Hello, World!" program in C: #include <stdio.h> int main () { printf("Hello, World!"); return 0; }


Write a program to print 'hello' in output?

Ah, the infamous "Hello World" program. I'm assuming you have a compiler (if not Dev-C++ if a good) the code is as follows: #include <iostream> using namespace std; int main() { cout << "Hello World" << endl; system("PAUSE"); return 0; }


A program in c?

int main (void){puts ("Hello world") ;return 0 ;}


Dry run table in flow-chart?

/* my second program in C++ with more comments */ #include <iostream> using namespace std; int main () { cout << "Hello World! "; // prints Hello World! cout << "I'm a C++ program"; // prints I'm a C++ program return 0; }


Write a C program to print a name?

#include <stdio.h> int main(void) { printf("Hello world!"); return 0; } Of course, all you have to do is merely replace "Hello, world!" with your chosen name.


Was hello world the content of the first computer program?

No, "Hello world" is typically the first program assignment in introductory computer programming classes as it is trivial to write and almost useless.


Write a program in C using macros?

#include <stdio.h> #define HELLO(s) printf ("%s\n", s) #define MAIN main (void) { HELLO ("Hello world!"); return 0; } MAIN


Why is complication needed before executing a C program?

It doesn't have to be complicated. Just look at "Hello World" for your proof.