Practice Programs (Unit-2)
Practice Programs (Unit-2)
1. Python Program to take three numbers from the user and print the
greatest number.
3. Write a program to print any person is eligible for vote or not (age
Ex: if Input: N = 4
Then Output: 30
12 + 22 + 32 + 42 = 1 + 4 + 9 + 16 = 30
Input
5
Output
*
**
***
****
*****
****
***
**
*