answersLogoWhite

0


Best Answer
C++ Hello World Example:// this is a single line comment /* this is a multi-line comment */ #include // header file needed to print using namespace std; // instead of having to write std::cout // the main function is where the program begins execution int main() { // print Hello world. and a new line cout
User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

14y ago

#include <iostream>

int main()

{

printf("Hello, World!\n");

return 0;

}

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

#include <iostream>

int count = 0;

while(count < 100)

std::cout << "Hello World!" << std::endl;

This answer is:
User Avatar

User Avatar

Wiki User

8y ago

To display Hello C World using C Programming language:

#include<stdio.h>

int main (void) {

printf ("Hello world");

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you print hello world 100 times in c plus plus using while statment?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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()


What symbol would you use in most versions of BASIC as a shortcut for the PRINT command?

Using a ? instead of typing PRINT saved four keystrokes. 10 ? "Hello" would do the same as 10 PRINT "Hello".


How do you print a particular value using PHP?

To print a particular value in PHP you have to select which variable you wish to print. Below is an example of how this can be done. &lt;?php $var[1] = "Hello"; $var[2] = "Lalala"; print $var[2]; // prints Lalala but not Hello ?&gt;


How do you print an HTML table using PHP?

It is really simple to print an HTML table in PHP, all you have to do is the following: &lt;?php print "&lt;table&gt;"; print "&lt;tr&gt;"; print "&lt;td&gt;hello&lt;/td&gt;"; print "&lt;/tr&gt;"; print "&lt;/table&gt;"; ?&gt;


How do you research answers using your computer?

i need the answer in statment


Write a programme in c to print hello world without using statement terminator?

#include&lt;stdio.h&gt; #include&lt;conio.h&gt; void main() { if(printf("hello world")){} if(getch()){} }


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 &lt;iostream&gt; using namespace std; int main() { cout &lt;&lt; "Hello World" &lt;&lt; endl; system("PAUSE"); return 0; }


How do you write a C program to print your name one hundred times?

Duhh.. printf("hello "); printf("hello "); printf("hello "); printf("hello "); printf("hello "); printf("hello "); printf("hello "); printf("hello "); printf("hello "); Just kidding. Just loop the printing. int x = 0; for(x = 0; x&lt;11; x++) { printf("hello "); } and if you want each "hello" to be in a new line, use this: printf("hello\n");


How do you print square using for loops?

how to print "square" using for loop


What is font type?

Hello! This is a great question with a pretty complicated answer. Basically, fonts are the letterforms used for writing in print documents online. They are used to make a document legible, appropriate, and beautiful.


How do you print without using Print Preview?

impossible sorry


What is the uses of quick print option?

Quick Print enables you to print without using the Print dialog box. If you just want to do a standard print, without changing settings then using the Quick Print saves some time.