You are on page 1of 18

Directorate of Distance Education

KURUKSHETRA UNIVERSITY, KURUKSHETRA


("A+" Grade, NAAC Accredited)

PROBLEM
SOLVING
THROUGH
“C”
Submitted To:
Submitted By:
Reference Number:

1
CONTENTS:

1. Program to calculate Simple Interest in C............................................................3


2. Program to find out gross salary.................................................................................4
3. Program to check whether a given Number is Odd or Even.....................5
4. Program using operators in C........................................................................................6
5. Program to find the Largest Number of Three...................................................7
6. Program to find factorial of a given number.......................................................8
7. Program to check whether the number is prime or not..............................9
8. Program to give you the Multiplication table of given number ............10
9. Program to print the Pyramid.......................................................................................11
10. Program to Print Palindrome of a Number..........................................................12
11. Program to Add Two Matrices.....................................................................................13
12. Program to Multiply Two Matrices............................................................................14
13. Program to compare Two strings..............................................................................15
14. Program to Swap Two numbers using pointers..............................................16
15. Program to Calculate Percentage with Division.............................................17
16. Program to find the Fibonacci Series.....................................................................18

2
Program 1:
Program to calculate Simple Interest in C

3
Program 2:
To find out gross salary, while taking the basic salary of a person as
an input

4
Program 3:
Program to check whether a given Number is Odd or Even

5
Program 4:
Program using operators in C

6
Program 5:
Program to find the Largest Number of Three

7
Program 6:
Program to find factorial of a given number

8
Program 7:
Program to check whether the number is prime or not

9
Program 8:
Program to give you the Multiplication table of given number

Program 9:

10
Program to print the Pyramid

11
Program 10:
Program to Print Palindrome of a Number

12
Program 11:
Program to Add Two Matrices

13
Program 12:
Program to Multiply Two Matrices

14
Program 13:
Program to compare Two strings

15
Program 14:
Program to Swap Two numbers using pointers

16
Program 15:
Program to Calculate Percentage with Division

17
Program 16:
Program to find the Fibonacci Series

18

You might also like