Rewrite the following code using while loop statement instead of for loop statement in C++. #include #include using namespace std;int main(){int counter(0);int number(0) ;int largest(0);cout >...

Rewrite the following code using while loop statement instead of for loop statement in C++. #include #include using namespace std; int main() { int counter(0); int number(0) ; int largest(0); cout < "enter="" the="" first="" number:="" ";="" cin="">> largest; for (counter =0; counter < 10;="" ++counter)="" {="" cout="">< "enter="" the="" next="" number="" :="" ";="" cin="">> number; if (number > largest) { largest = number; } } cout < "largest="" is="" "="">< largest="" ;="">

Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here