Ask Question
16 February, 04:59

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.

+4
Answers (1)
  1. 16 February, 05:51
    0
    if age > = 65:

    seniorCitizens = seniorCitizens + 1

    else:

    nonSeniors = nonSeniors + 1
Know the Answer?
Not Sure About the Answer?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers