## Control Statements

### 1. Sequential

#### Write a Program to calculate

- Area of rectangle
- Area of circle
- Area of cuboid
- Area of cube
- Area of TSA of cylinder
- Area of CSA of cylinder
- Area of CSa of cone
- TSA of sphere
- Volume of cuboid
- Volume of cube
- Volume of cylinder
- Volume of cone
- Volume of sphere
- Perimeter of rectangle
- Area of square
- Area of triangle

17. A menu driven program to calculate the total surface area and volume of a cube, cuboid, or sphere depending upon user’s choice. The program should continue until the user selects the option to exit the program.

### 2. Conditional

### 3. Looping

- To find given number is even or odd
- Find greatest no. In four no.
- To check division in result
- To check age criteria
- Sum of nth no.
- To find the sum of first n natural numbers, where n is to be input from the user.
- To check the value of factorial
- To input a number and display its first 10 multiples
- To print multiplication table
- To print opposite right angle triangle
- Ruhi wants to write a script to input the number of students of a class and perform some processing. She knows that sometimes the user may enter a negative number for the number of students. In such a case, she wants to take the positive value of the number (ex., if user enters -35, she wants to take 35). Help Ruhi by writing the part of the script which inputs the number of students in a class and converts it into a positive number if it is negative.

## Pattern

- To print star pattern of opposite triangle
- To print pattern 1,12,123
- x + x2 + x3 + . . .
- x – x2 + x3 + . . .
*x*2*x*3- 1+ x + 2 + 3 + . . .
*x*2*x*3- 1+ x + 2! + 3! + . . .
- 1- x +
*x*3*x*5*x*7+ . . . - 1+3!+5!+7!.. .
*x*3*x*5*x*7- 1- + – …
- 1 12 123
- 1 121 12321 1234321 .
- 3! 5! 7!

## Data Structures

- List: To create a list of values inputted by user
- Dictionary: Python to create a phone dictionary
- Tuple: To create a tuple of values inputed by user
- Linked List

## Sorting

- Sorting in ascending order use bubble sort
- Inputs ‘n’ numbers from the user and displays these numbers in ascending order.

You must log in to post a comment.