0% found this document useful (0 votes)
9 views15 pages

C Programming Assignment

The document outlines a series of programming assignments, each requiring the creation of a specific program to solve mathematical or algorithmic problems. Assignments include tasks such as calculating sums, converting numbers between bases, matrix operations, string manipulations, and checking properties of numbers. Each assignment has a section for the program code and expected output, along with a space for teacher signature.

Uploaded by

soumenbera8509
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views15 pages

C Programming Assignment

The document outlines a series of programming assignments, each requiring the creation of a specific program to solve mathematical or algorithmic problems. Assignments include tasks such as calculating sums, converting numbers between bases, matrix operations, string manipulations, and checking properties of numbers. Each assignment has a section for the program code and expected output, along with a space for teacher signature.

Uploaded by

soumenbera8509
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

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

You might also like