[go: up one dir, main page]

0% found this document useful (0 votes)
35 views1 page

Practice - Control Structure & Functions

The document outlines an assignment consisting of six programming tasks. These tasks include finding the second maximum of three numbers, printing the day of the week based on user input, calculating the factorial using both a standard and recursive function, generating a Fibonacci series, and defining a function to return the maximum of three integers. Each task emphasizes the use of functions and error handling where applicable.

Uploaded by

The Priest
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

Practice - Control Structure & Functions

The document outlines an assignment consisting of six programming tasks. These tasks include finding the second maximum of three numbers, printing the day of the week based on user input, calculating the factorial using both a standard and recursive function, generating a Fibonacci series, and defining a function to return the maximum of three integers. Each task emphasizes the use of functions and error handling where applicable.

Uploaded by

The Priest
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Assignment 3

1. Write a program to find the second maximum among three numbers.


2. Write a program to to print the day of the week as per the given number
by the user from 1 to 7, display an error message to if given value is out
of the range.
3. Calculate factorial of a number by calling a function
4. Print a Fibonacci series for N terms using a function.
5. Define a function that receives 3 integer arguments and returns the max value.
6. Calculate factorial of a number by calling a recursive function

You might also like