Ask Question
15 May, 13:50

Write an if/else statement that compares the variable age with 65, adds 1 to the variable seniorCitizens if age is greater than or equal to 65, and adds 1 to the variable nonSeniors otherwise.

+3
Answers (1)
  1. 15 May, 14:13
    0
    if age > = 65:

    seniorCitizens = seniorCitizens + 1

    else:

    nonSeniors = nonSeniors + 1
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write an if/else statement that compares the variable age with 65, adds 1 to the variable seniorCitizens if age is greater than or equal to ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers