Answer to Question #259291 in C++ for Isjdd

Question #259291

Appearance of water


1
Expert's answer
2021-10-31T12:01:13-0400
#include <iostream>
using namespace std;
int main()
{
 int L;
 L = 0;
 while(L<50){
 cout<<"Enter water level in %:";
 cin >> L;
}
 while(L>0){
 cout<<"Current level is "<< L << "% \n";
 L = L - 10; 
 }
 cout<<"Empty!";
 return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS