Annexure 1
Annexure 1
b)
*
**
***
****
*****
******
14. Write the program to print the following pattern: 7
1 2 3 4 5 6
2 4 6 8 10 12
3 6 9 12 15 18
4 8 12 16 20 24
5 10 15 20 25 30
6 12 18 24 30 36
15. Write a program to check that the given number is prime, Armstrong 8
or perfect using the concept of functions.
16. Write a program to calculate the area and circumference of a circle 8
using functions.
17. Write a program to swap two variables using the concept of call by 9
value and call by reference.
18. Write a program to perform the following operations on 1D-Array: 9
Insert
Update
Delete
Display
Search
19. Write a program to calculate the sum of array elements by passing it 10
to a function.
20. Write a program to show the use of passing pointer as arguments to 10
the functions.
Lab Evaluation-II
21. Write a program matrix multiplication using the concept of 2D array 11
22. Write a program to transpose a given matrix. 11
23. Write a program to find the factorial of a number by using the 12
concept of recursion.
24. Write a program to display the sum of the digits of a number by using 12
the concept of recursion.