Ask Question
17 January, 07:56

Write an expression that will print "Dollar or more" if the value of num_cents is at least a dollar (100 cents is a dollar). Sample output with input: 109 Dollar or more

+3
Answers (1)
  1. 17 January, 08:30
    0
    num_cents = 109

    if num_cents > = 100:

    print ('Dollar or more')

    else:

    print ('not a dollar')

    Explanation:

    Assign the value of 109 to num_cents. Check if num_cents value is greater than 100, then print dollar or more. Else the value entered is less than 100 cents so it is not a dollar.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write an expression that will print "Dollar or more" if the value of num_cents is at least a dollar (100 cents is a dollar). Sample output ...” 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