Write down the outputs Int firstNum secondNum int sumEven 0


Write down the outputs
Int firstNum, secondNum; int sumEven = 0; int SuaSquareOdd = 0; Char chCounter; int counter;//Part a cout

Solution

// input
firstNum = 1
secondNum = 9


// firstNum mod 2 is not zero
counter = firstNum
counter = 1

// firstNum mod 2 is not zero
counter = firstNum + 1
counter = 1 + 1 = 2

therefore, before further executing the program
i.e before the while loop

// output
firstNum = 1
secondNum = 9
counter = 2


 Write down the outputs Int firstNum, secondNum; int sumEven = 0; int SuaSquareOdd = 0; Char chCounter; int counter;//Part a cout Solution// input firstNum = 1

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site