Write a short program that prints "Hello" on the console four times using a while loop.
What will be an ideal response?
using static System.Console;
class FourHellos
{
static void Main()
{
int number = 1;
const int LIMIT = 5;
while(number < LIMIT)
{
WriteLine("Hello");
number = number + 1;
}
}
}
You might also like to view...
The header file that you must #include to have access to the Standard Library string class is
a. C-string b. string.h c. string d. String.h e. None of the above
The ____ filters displace pixels and heighten contrast in an image or selection, producing an impressionistic, painting-like effect.
a. Stylize b. Accent c. Sketch d. Texture
What are the benefits provided by switches?
What will be an ideal response?
Answer the following statements true (T) or false (F)
1. Sequential access file may be processed either randomly or sequentially. 2. Sorting is the processing categorizing the data. 3. The logical file number is a reference number used in the solution. 4. A systems flowchart uses the same symbols as an algorithmic flowchart. 5. The EOF is a marker after the last record in a file.