Assignment : 1 Page : 1
1. Write a program to find s=1+½+⅓+.....+1/n.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 2 Page : 2
2. Write a program to find s=1+(1+2)+(1+2+3)+…..+(1+2+3+….+n).
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 3 Page : 3
3. Write a program to find s=1+11+111+…..up to nth term.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 4 Page : 4
4. Write a program to convert a decimal number to binary number.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 5 Page : 5
5. Write a program to convert a decimal number to hexadecimal number.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 6 Page : 6
6. Write a program to find maximum of n numbers.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 7 Page : 7
7. Write a program to mul ply of two matrices with proper checking.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 8 Page : 8
8. Write a program to addi on of two matrices with proper checking.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 9 Page : 9
9. Write a program to count the vowels of a string.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 10 Page : 10
10. Write a program to check a string is palindrome or not.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 11 Page : 11
11. Write a program to transpose of an mXn matrix.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 12 Page : 12
12. Write a program to find GCD and LCM of two numbers.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 13 Page : 13
13. Write a program to check a number is prime or not.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 14 Page : 14
14. Write a program to check a number is palindrome or not.
The program is
The out put is
………………………………..
Teacher Signature
Assignment : 15 Page : 15
15. Write a program to swap of two numbers using pointer.
The out put is
………………………………..
Teacher Signature