Ask Question
14 August, 15:50

Write the definition of a function printLarger, which has two int parameters and returns nothing. The function prints the larger value of the two parameters on a single line by itself. (For purposes of this exercise, the "larger" means "not the smaller".)

+1
Answers (1)
  1. 14 August, 18:43
    0
    def printLarger (x: int, y: int):

    print (max (x, y))

    Explanation:

    The function is written in python as follows:

    the fuction printLarger takes two integer parameters x and y max () function determines larger value of x and y. If the numbers are the same it prints the value of the numbers as the largest value. the function prints the larger value.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write the definition of a function printLarger, which has two int parameters and returns nothing. The function prints the larger value of ...” 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