njgfbkjgbkj

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

LIST OF PRACTICAL

Class: XI Subject: CS (New)


1. Write a program to accepts two integers and print their sum.
2. Write a program that accepts radius of a circle and prints its area.
3. Write a program that inputs a student’s marks in three subjects (out of
100) and prints the percentage marks.
4. Write a program to compute area of square and triangle.
5. Write a program to compute simple interest.
6. Write a program to read two numbers and prints their quotient and
reminder.
7. Write a program to find whether a given number is even or odd?
8. Write a program to find largest among three integers.
9. Write a program to find lowest among three integers.
10. Write a program to print roots of a quadratic equation ax2 + bx +c=0
(where a≠0).
11. WAP to check whether the given number is palindrome or not.

12. Program to print first n Natural numbers and their sum.


13. Program to calculate factorial of an integer using while loop.
14. Program to check whether the given number is palindrome or not.
15. Write a program to print table of a given number.
16. Write a program to print Fibonacci series. i.e. 0 1 1 2 3 5 8 …
17. Write a program to print following patter on screen
*
**
***
****
18. Program to add the odd numbers up to(and including) a given value N
and print the result.
19. WAP to display Square all numbers from 1to 20.

20. Given two integers x and n, compute x rest to power n.


21. Write a script to print following:
8
86
864
8642

22. To obtain temperatures of 07 days and then


display average temperature of the week

You might also like