INDEX
C LANGUAGE PRACTICALS
S.NO OBJECTS PAGE SIGNATURE REMARKS
NO
1. Write a program to input temperatures 1-5
of week and calculate the average.
2. Write a program to calculate the 6-10
payroll of an employee. Read basic pay
from keyboard. Calculate medical
allowance as 15% of basic pay.
Conveyance allowance as 20% of basic
pay and house rent as 45% of basic
pay. Deduct 5% of basic pay as tax.
Calculate gross pay and net pay. Print
all.
3. Write a program which uses arithmetic 11-15
operators to calculate Area of triangle,
Area of circle and volume of Sphere.
4. Write a program that reads and print 16-20
data asking name, age, height and
gender of a student. Use “scanf()” and
“printf()” functions along with escape
sequence.
5. Write a program that find greatest 21-25
number among three inputted
numbers.
6. Write a program that reads marks of 26-30
five subjects, Calculate total marks and
percentage. State whether candidate
id pass or fail.
7. Write a program that converts 31-35
uppercase letter to lowercase and vice
versa (using functions).
8. Write a program to calculate roots of a 36-40
quadratic equation using quadratic
formula.
9. Write a program that prints squares 41-45
and cubes of first 10 even numbers.
10. Write a program that generates 46-50
characters corresponding to ASCII
codes from 32 to 127.
(c)
11. Write a(d)
program to generate
1 5 9 13table
17 of 51-55
*any inputted number.
1 5 9 13
12. ***
Find factorial of any inputted
1 5 9 number. 56-60
***** 15
13. Write*******
a program that inputs
1 a number 61-65
and*********
then checks it whether it is prime
or not.
14. Write a program which uses switch 66-70
and break statements.
15. Write a program to draw a checkboard 71-75
using if-else ladder.
16. Write a program to print the following 76-95
output.
(a)
(b)
1
1234
12
123
123
12
1234
12345 1
17. Write a program using function to 96-
print sum of two integers. 100