Question: Write a program to determine if a given random year between 1 9 4 8 and 2 0 1 9 has held a Summer Olympic
Write a program to determine if a given random year between and has held a Summer Olympic Games. Use relational operators to assign 'true' to the logical variable summerOlympicsYear if the variable year is greater than or equal to and is divisible by Otherwise, the variable summerOlympicsYear should be assigned the logical value 'false'.
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
