You are on page 1of 1

Holiday homework Class XII

Note: All the work to be done in separate thin notebook.All Program must be
written using user define function then call these function in main().

1.Write a program to print the following patterns on the screen –


***** 54321
**** 4321
*** 321
** 21
* 1
.2.WAP to find maximum of N inputed numbers.
3. WAP to test whether the inputed no is Armstrong number or not .
4. WAP to test whether the inputed no is prime or not.
5. WAP to display the armstrong numbers between 1 and 500 .
6 . WAP to display the prime numbers between 1 and 100 .
7. WAP in C++ to check whether the inputed integer is automorphic or not .
8. WAP in C++ to find the sum of the digits of an inputed number.
10 . WAP in C++ to find H.C.F of two inputed numbers .
11. WAP in C++ to find the L.C.M. of two inputed numbers.
12. Write a program to enter the number of units of electricity consumed and
calculate

electricity bill as per the following table –


No. Of units Rate per unit
For the first 100 units rs. 1
For the next 200 units rs. 1.50
For the next 200 units rs. 2.00
Above 500 units rs. 2.50

You might also like