- Declare A Boolean Variable Named Allvalid Read In An Input Value For Variable Numin Then Read Numin Integers From Inp 1 (19.26 KiB) Viewed 32 times
Declare a Boolean variable named allValid. Read in an input value for variable numin. Then, read numin integers from inp
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Declare a Boolean variable named allValid. Read in an input value for variable numin. Then, read numin integers from inp
Declare a Boolean variable named allValid. Read in an input value for variable numin. Then, read numin integers from input, and output "All valid values" if all of the integers are in the range-100 to -90 inclusive. Otherwise, output 'At least one mismatch Ex: If the input is 2-95-75, the output is At least one mismatch 1 #include <iostream> 2 using namespace std; 3 4 int main() { 5 int numin, 6 7 Additional variable declarations go here 8 9 10 11 12 13 24 15 Your code goes here / if (allValid) { cout << "All valid values" << endl; } else ( cout << "At least one mismatch" << endl; -D- 1