Ask 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 65, and adds 1 to the variable nonSeniors otherwise.

+3
Answers (1)
  1. 16 March, 16:34
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers