Question: c#labObjects: To use while and do-while loops. To use For-Loops Activities: Write a program to print out the even numbers between(0-10), using do-while loop. Write
c#labObjects:
To use while and do-while loops.
To use For-Loops
Activities:
- Write a program to print out the even numbers between(0-10), using do-while loop.
- Write a program to print out if a number entered by theuser "even” or "odd” using while loop the loop will stop when theuser enters -1.
- Write a program to find sum of all even numbers between 1 ton, using FOR-loop.
Q: What is the output of the followingcode?
int count =0;
int numItems =4;
while (count < 100)
{
numItems++;
Console.WriteLine(numItems );
count++;
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
