Take values of length and breadth of a rectangle from user and check if it is square or not.
Take three integer input from user and find the largest number between using if-elif-else statement.
Write a program using conditional Statement whether a number is even or odd. (even means divisible by 2 and odd mean not divisible by 2) Suppose user provide input as 15 then it will print “15 is an odd number”
Write a Program to take integer input from user and display the grade according to the following criteria.
| Marks | Grade |
|---|---|
| > 90 | A |
| > 80 and <= 90 | B |
| >= 60 and <= 79 | C |
| below 60 | D |
Write a Program to check whether a year is leap year or not. Take input from User.
example: if year = 1996, it is a leap year
Conditions for leap year: