A weather station validates the rain into its critical level by its raindrops fell. Make program that will input number of raindrops fell, Check if raindrops fell is equal to 10,000 then display “CRITICAL RAIN”. Your program will be terminated if you input zero in the raindrops fell.
#include <iosteam>
using namespace std;
int main() {
while (true) {
int i;
cout << "Enter some integer: ";
cin >> i;
if (i == 0) return 1;
cout << "CRITICAL RAIN: " << i << endl;
}
return 0;
}
Comments
Leave a comment