Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

Gyan Deep Shiksha Bharti

XII
ENGLISH FILE

PREPARED BY: SUBMITTED TO:


MANISH KUMAR Mr. DIGAMBER SIR
Roll No: PGT(ENGLISH)

XII
Session: 2023-24
INDEX
1. Input three numbers and display the largest & smallest number.
2. Write a program to input a value in tonnes and convert it into quintals
and kilograms
(1 tonnes = 10 quintals, 1 tonne= 1000 kgs, 1 quintal= kgs)
3. Write a program to input a number and print its cube.
4. Generate the following patterns using nested loop.
*
* *
* * *
* * * *
* * * * *
5. Write a program to input the value of x and n and print the sum of
following series:
𝑛
6. Program to calculate BMI of a person. (BMI=kg (weight in kg)/ m2
(height in metres)
7. Input a number and check if the number is a prime or composite
number.
8. Display the terms of a Fibonacci series.
9. Input a number and check if it is Armstrong number or not.
10. Compute the greatest common divisor and least common multiple of
two integers.
11. Input a list of numbers and swap elements at the even location with
the elements at the odd location.
12. Input a list of elements, search for a given element in the list.
13. Create a dictionary with the name and marks of n students in a class,
calculate and display the average of marks.
14. Write a program to implement a dice throw game. Input number of
dice throws and throw dice accordingly to display random number
each time.
15. Implement number guessing game where a computer asks to input a
number and checks it with secret number. If number is greater or
smaller message displayed accordingly & input received until number
is correctly guessed.

Program 1:
Output:

You might also like