Answered You can hire a professional tutor to get the answer.

QUESTION

C++ code; rewrite the following code in C#. Run the program and submit.

C++ code; rewrite the following code in C#. Run the program and submit. - include comments

  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int count=1, total=0;
  6. while(count<=100)
  7. {
  8. total +=count;
  9. count++;
  10. }
  11. cout<<"The sum of the numbers 1 - 100 is "<<total<<endl;
  12. return 0;
  13. }
Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question