Appearance of water
#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;
}
Comments
Leave a comment