Content
SL
NO
PROGRAM
PAGE
Write a C program to find the smallest of three integers.
Write a C program to find the smallest of three integers, without using
any of the comparison operators.
Program to find that entered year is leap year or not.
Program to find gross salary of an employee looking at the following
table
Salary
>10000
>5000
TA
2% of
salary
0
<5000
DA
3% of
salary
2% of
salary
0
PF
50% of
salary
50% of
Salary
0
GROSS
?
NET
?
Program to find whether given no is even or odd.
Program to convert temperature from degree centigrade to Fahrenheit.
Program to find the simple interest.
Program to find area and circumference of circle.
Program to swap of two nos without using third variable.
10
Program to calculate average of 3 subjects & find the result.
AVG
>=60
>=40
>=35
<35
RESULT
1st
2nd
3d
Failed
Each paper caries more than 35 marks
11
Program to find area triangle
12
Program to calculate age if birth date is given.
13
Program to calculate the power of a number
14
Write a c program to solve a quadratic equation using switch statement
15
Write program to round floating point number to an indicate decimal
place e. G. 17.457 will be rounded to 17.46 to two decimal places.
SL
NO
16
PROGRAM
PAGE
Program to calculate the net amount looking at the following table
Pname
Pepsi
X
X
Quantity
5
X
X
Rate
10/X
X
Amount
50
X
X
Discount
Net
Discount Chart
5000 and above
3000 to 5000
1000 to 3000
1000/500/300/-
17
Program to print a table of any number.
18
Write a C function that has three inputs which are integers. The function returns true if the first number raised to the power of the second
number equals the third number.
19
Program to reverse a given number.
20
Program to reverse a given number using Function Recursion/Stack
21
Program to display all the numbers from 1 to 10 using Function Recursion/Stack
22
Program to calculate the factorial of a number.
23
Program to calculate the factorial of a using Function Recursion/Stack.
24
Program to calculate the sum digits of a number.
25
Program to calculate the sum digits of a number using Function Recursion/Stack.
26
Program to check the number is strong number or not.
27
Program to calculate the prime factors of a numbers.
28
Program to check given number is Armstrong or not.
29
Program to check given number is palindrome or not.
30
Program to check given number is palindrome or not using Function
Recursion/Stack
31
Program to add between any two numbers using loop.
32
Program to calculate g.c.d of any two numbers.
33
Program to calculate g.c.d of any two numbers using Function Recursion/Stack
34
Program to calculate l.c.m of two numbers.
2
SL
NO
PROGRAM
35
Program to calculate Fibonacci series.
36
Program to calculate string palindrome.
37
Program to check the number is prime number or not.
38
Program to check the number is perfect number or not.
39
Program to find generic root of a number.
40
Program to find generic root of a number using Function Recursion/
Stack
41
Program to display sum of series 1+1/2+1/3+.+1/n.
42
Program to display series and find sum of 1+3+5+..+n.
43
Program to calculate the sum of the series : 1 * 1 + 2* 22+ 3* 33 + 4* 44
+ n* nn
44
Program to calculate sum of the series 1+2+3+---------+n
45
Program to calculate the sum of the series : 1 * 1! + 2*2! + 3* 3! + .
N*n!
46
Given the following series: 1 2 5 26 677 .. Such that the nth value
equals to (n-1 th)2 +1 and the first value is 1. Write a recursion function
named f to compute the nth value. Use for loop to print the values of
first 6 values.
47
Insert element at any position of an array
48
Remove element from any position of an array
49
Program to find largest element in an array.
50
Program to find second largest element in an array.
51
Program to remove duplicate elements in an array.
52
Program to convert decimal to binary.
53
Program to copy contents of one string to another string without using
strcpy function
54
Program to convert upper case to lower case of a given string
55
Program to add a sub-string in a string.
56
Program to find the largest number in a 2D-array using pointer
57
Program to count number of vowels, digits, characters and word present
in string.
58
Program to add between two matrixes.
PAGE
SL
NO
PROGRAM
PAGE
59
Program to multiply between two matrixes.
60
Program to transpose a matrix.
61
Program for a sparse matrix
62
Program for bubble sort.
63
Program for selection sort.
64
Program for insertion sort.
65
Program for sequential search using array
66
Program for binary search using array
67
To find the longest word and its length in a give string.
68
An array contains only 0 and 1 in any order. Write the algorithm to
arrange all 0 and 1 in separate form. See the example : 10010011 ->
0000 1111
69
Write the code for the series eg: If a3b2c4 ..is taken then output should
be aaabbcccc
70
Alter each element s in an array
71
Alter elements in middle of an array
72
Write a program to convert given ip address 192.168.3.35 into
192.168.003.035
73
Write a C function that computes that total sum of a 2D array of size 6
by 5.
74
Call a function according to the user requirement ,but without using
any control structure
75
Declare a 2-dimensional array a of integers of size 4 x 4.. Treat it as
matrix. Write a c program to test if this matrix is symmetric.
76
Write a c program to create a file for RD account in a bank assuming
the file structure as RD Account no, installment amount and number of
installments
77
Write a c program to open a file named bput and write a line of text in
it by reading the text from the key board.
78
Write a file copy program which copies the file prog.c to prog.old
79
Write a program to compare two files specified by the user, displaying
a message indicating whether the files are identical or different.
80
Write a program to count no. of paragraphs, lines, words and characters present in a file.
4
SL
NO
PROGRAM
81
Write a program to display file contents 20 lines at a time. The program pauses after displaying 20 lines until the user presses either Q to
quit or Return to display the next 20 lines
82
If a text file contains mobile numbers with a semicolon (;) separated
format , write program to remove all mobile numbers from a file.
83
Write a program to replace all is with are in a file
84
Write a program to spit a file into two different file and then merge it
85
Write a program to read last n lines from a file.
86
Write a program to alternate every two nodes in a linked list
87
Write the program in an efficient way to find the middle of the linked list
88
Write a program to find the nth to last element of a singly linked list.
89
Write a program reverse a linked list
90
Program to print the following star patterns
*
***
*****
*******
*********
91
*
**
***
****
*****
Program to print the following characters patterns
ABCDE EDCBA
ABCD DCBA
ABC
CBA
AB
BA
A
A
92
93
Program to print the following number patterns
1
12
123
1234
94
Program to print the following number patterns
1
22
333
4444
55555
5
PAGE
SL
NO
PROGRAM
95
Program to print the following number patterns
96
1
232
34543
4567654
567898765
Program to print the elements of an array in spiral order
PAGE
Input:
1
5
9
13
2
6
10
14
3 4
7 8
11 12
15 16
Output:
1 2 3 4 8 12 16 15 14 13 9 5 6 7 11 10
97
Write a C program that prints below shape using nested loop
*
***
*****
*******
*********
*******
*****
***
*
98
Add between any two numbers using command line argument
99
Using command line argument display the contents of a file
100
Reverse a string if string is given using command line argument