using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Testing { class Program { staticvoid Main(string[] args) { int number = 1; while (number 19) number =...


using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;


namespace Testing

{

class Program

{

staticvoid Main(string[] args)

{

int number = 1;

while (number <=>

{

Console.WriteLine(number);

number = number + 1;

if (number >19)

number = number + 2;

}







Console.ReadKey();

}

}

}


This program is to count from 1-1000 and after 20 it counts by adding 2. How would I modify the program to add up all of the numbers after 802?


Jun 02, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here