Answer to Question #263690 in C++ for fiona

Question #263690

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.


1
Expert's answer
2021-11-10T03:01:14-0500
#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;
}

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