1. Program to find largest of given three numbers.
2. Program to find Second largest of given three numbers.
3. Program to find the roots of a Quadratic Equation
4. Program accepts positive integers 'work' that needs to be done, f1 and f2 are the force applied by
1st and 2nd person respectively and d1 and d2 are the displacements done by the force
application by 1st and 2nd person respectively. Implement the function to find and return the
work left after the two people completed their work.
5. You have a basket full of apples and mangoes, your job is to make the number of apples and mangoes equal in the basket. To do so you are given a function that accepts three integers a, m and rs as its argument where a and m are number of apples and mangoes present in basket respectively and rs is the rupees that you have Implement the function to balance the fruits according to the following rules:
Return the total rupees left with you after balancing the fruits.
Example:
m=4
rs=6
Output=2
m=20
rs=4
Output=14.
6. A function accepts two positive integers n1 and n2 as its arugument. Implement the function on given 2 values to return an integer as follows:
Ex: 25
37
output:25
7. Program to check primality of a given number
8. Program to print sequence of prime numbers upto n.
9. Program to find factorial of a given integer using recrusion and non-recrusion.
10. Program to find gcd of two given numbers