Professional Documents
Culture Documents
Second Semester Department of Electrical Engineering
Second Semester Department of Electrical Engineering
Research Faisalabad
Output:
Task#2
Write a function that returns the smallest of three floating point numbers.
Input:
Output:
Task#3
Write a function that takes an integer values and returns the numbers with its digits
reversed. For example, given the number 7631, the function should return 1367. Make
a generalized program.
Input:
Output:
Task#4
Write a function that returns the square of an integer.
Input:
Output:
Task#5
Write a function to display this series (1,4,9,16,25,…) and so on, where number of
terms is given by the user.
Input:
Output: