Ask Question
6 March, 07:36

Write an if statement that prints the message "Application accepted" if the variable workExperience is greater than or equal to 2 or the variable hasCollegeDegree is true.

+3
Answers (2)
  1. 6 March, 09:01
    0
    If workExperience > = 2 or CollegeDegree is true:

    print "Application accepted"

    else:

    print "Application denied"
  2. 6 March, 10:07
    0
    if workExperience>=2 or hasCollegeDegree==True:

    print ("Application accepted")

    Explanation:

    In the first line of code, we wrote an if statement that allows us to print a message if and only if the int variable workExperience is greater than 2 or the bool variable workExperience is True In the second line of code, we print the message Application accepted if the if-statement evaluated to True

    Note: This code was written in python but you can extend the same concept to any programing language using if, comparison operation, boolean operators and print function.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write an if statement that prints the message "Application accepted" if the variable workExperience is greater than or equal to 2 or the ...” 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