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:

 
  1. Write a program to print out the even numbers between(0-10), using do-while loop.
  2. 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.
  3. 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!