You are on page 1of 1

KENDRIYA VIDYALAYA B.S.F.

, KHAJUWALA
CLASS XI
ASSIGNMENT II

1. Write a program to input a character and to print whether a given character


is an alphabet, digit or any other character.
2. Write a program to calculate and print roots of a quadratic equation
ax2 + bx + c = 0 (a ≠ 0).
3. Write a program to print the febonacci series.
4. Write a program to find out whether the given number is prime or not.
5. Write a program to print

* ***** *****
** **** ****
*** *** ***
**** ** **
***** * *

6. Write a program to find out factorial of a given number.


7. Write a program to find out sum of the series up to 20 terms
1 + x + x2/2! + x3/3! + x4/4! + x5/5! + x6/6! …………..
8. Write a program to find out sum of the series up to 20 terms
1 - x + x2/2! - x3/3! + x4/4! - x5/5! + x6/6! …………..
9. Write a program to find out sum of the series up to 20 terms
1 + x2/2! + x4/4! + x6/6! …………..
10. Write a program to find out sum of the series up to 20 terms
x + x3/3!! + x5/5! …………..
11. Write a program to find out sum of the series up to 20 terms
1 + x + x2/2 + x3/3 + x4/4 + x5/5 + x6/6 …………..
12. Write a program to find out sum of the series up to 20 terms
1 - x + x2/2 - x3/3 + x4/4 - x5/5! + x6/6 …………..
13. Write a program to find out a year is a leap year or not.
14. Write a program for given three number A, B and C print their values in
descending order or ascending order.
15. Write a program to find out sum of the series up to 20 terms
1 + x + x2 + x3 + x4 …………..
16. Write a program to sort a series using Bubble sort.
17. Write a program to sort a series using Insertion sort.

You might also like