answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How many times will the following loop print the word hello to the screen?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is forloop?

For loop is utilize to do any specific work for specific number of times For example to print hello on computer screen 10 time we use For (start = 1; end = 10; start++) count<<"hello"; next


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


How do you print screen on a Samsung Galaxy S?

Hold down the back button while pressing the home button two times.


How many times does Lionel Ritchie say Hello in Hello?

3 times!


How do you write algorithm of Program in C to print hello 10 times?

#include<stdio.h> int main() { int i; for(i=0; i<10; i++) { printf("Hello Sok Sabay\n"); } }


How do you print hello world 100 times in c plus plus using while statment?

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


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<11; x++) { printf("hello "); } and if you want each "hello" to be in a new line, use this: printf("hello\n");


When was Pocahontas Times Print Shop created?

Pocahontas Times Print Shop was created in 1900.


How many times are people allowed to print a coupon?

If you need to print some coupons and are wondering just how many you are allowed to print, I have discovered that the average amount of times to print one particular coupon is twice.


What does wysiwyg stand for in ralation of computers?

WYSIWYG- stands for What You See Is What You Get. In Computers it is some times referred to a Print preview of a Document. It means, what you see on the screen is exactly going to appear on the paper when printed.


How does a for loop start?

It starts with a boolean (true or false) expression. If the expression evaluates to true then the following statement or block of statements is run. For example: int num = 5; while (num < 9) { <code that does something goes here> num++; } In this example the contents of the while loop will be executed 4 times


How do you print a string 5 times in java?

For(int I = 0: I < 5; i++) { System.out.println(" print this " + I ); }