Question: Use the following selection structure to answer the next three questions: If intNumber=> intNumber = intNumber * 2 Elself intNumber> 500 Then intNumber = intNumber
Use the following selection structure to answer the next three questions: If intNumber=> intNumber = intNumber * 2 Elself intNumber> 500 Then intNumber = intNumber 3 End If a) Assume intNumber initially contains 50. What value int Number will contain after the above selection structure is executed? b) Assume intNumber initially contains 500. What value intNumber will contain after the above selection structure is executed? c)Assume int Number initially contains 1000. What value intNumber will contain after the above selection structure is executed? To receive credit for this assignment, submit yourlastname_firstname_ProgrammingSelection file (.txt or docx). Only ONE file, please.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
