answersLogoWhite

0


Best Answer

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;

}

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Write a program to print 'hello' in output?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does the print command do in Python?

The print command is a way to display output to the console. The hello world program, for example, can be written in python as simply print("Hello world") Other values can also be used in a print statement: a = 4 print(a) #will print the number 4


What is the meaning of print python programming?

In Python; the "print" feature will simply output something (defined by you) onto the screen. For example: print("Hello") would output "Hello" to the screen!


Write an assembly language program to print a to z on screen?

write a program to print A to Z on screen in c?


What PHP statement outputs text on the screen?

There are several different ways to output text on the screen in PHP two of the most common are echo and print. echo "Hello World!"; print ("Hello World!"); Would both print ... Hello World!


Write a C program to print a name?

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


Write a unix program to print print a pattern?

echo 'print a pattern'


How do functions help you to reuse code in a program?

Functions hold code, which means anything that happens within a function can be "called" later on. Allowing the programmer to save time, and ensuring he doesn't have to re-write code. Example: Instead of writing "Hello" 10 times, I made a function that said print("hello") 5 times, then "Called" the function twice. def helloFiveTimes(): print("Hello") print("Hello") print("Hello") print("Hello") print("Hello") return helloFiveTimes() helloFiveTimes()


Write a java script program to print first ten odd natural numbers in C?

Q.1 Write a program to print first ten odd natural numbers. Q.2 Write a program to input a number. Print their table. Q.3 Write a function to print a factorial value.


How do you capture the output of C program in to another C program?

HIYou can first include the 1st program in ur 2nd program using # include and then whatever be the output from frst it can be used in second program.pankajThat's what popen is good for. Read the manual.


Write a program using iostreams to take as input two multi-dimensional arrays and print their sum as output Matrix Addition in Matrix format?

http://www.assignmentsclub.com/


To print hello?

Print 'Hello';


How do you write a program to print the first n multiples of 7?

Algorithm: multiples input: two positive integers, m and n output: print first n multiples of m i = m; for j = 1 to n print i i = i + m; next j