Page 1 of 1

Declare a Boolean variable named allEven. Read in an input value for variable valCount. Then, read valCount integers fro

Posted: Thu Jul 14, 2022 2:19 pm
by answerhappygod
Declare A Boolean Variable Named Alleven Read In An Input Value For Variable Valcount Then Read Valcount Integers Fro 1
Declare A Boolean Variable Named Alleven Read In An Input Value For Variable Valcount Then Read Valcount Integers Fro 1 (52.44 KiB) Viewed 27 times
Declare a Boolean variable named allEven. Read in an input value for variable valCount. Then, read valCount integers from input and output "All match" if all integers are even. Otherwise, output "Not all match". Note: Even numbers are divisible by 2. Ex: If the input is 3309050 , the output is: All match