Question: Write a program using functions that accepts two integers as arguments and does the following: a. Calculates the sum and displays it on the
Write a program using functions that accepts two integers as arguments and does the following: a. Calculates the sum and displays it on the screen. b. Calculates and returns the sum to the main program. Lab Task 2: Write a program using function that accepts on an integer as its parameter and displays its first ten multiples. Lab Task 3: Write a program using function that accepts one integer number as argument and returns its factorial. e.g. If the user enters 5, then the output of the function should be: 5!= 5 x 4 x 3 x 2 x 1 = 120
Step by Step Solution
3.58 Rating (158 Votes )
There are 3 Steps involved in it
Lab Task 1 def calculatesumanddisplaya b Calculate sum result a b Display the sum printfSum result R... View full answer
Get step-by-step solutions from verified subject matter experts
