Practical Index PPS
Practical Index PPS
Sr. Page.
Date Experiment No. Marks Signature
No.
Practical Set 1
1 1) Write a program to print “Hello World” on output screen.
2) Write a program to compute Fahrenheit from centigrade
(f=1.8*c +32)
3) Write a C program to interchange two numbers.
Practical Set 2
2 1) Write a program to find area of triangle(a=h*b*.5)
a = area
h = height
b = base
2) Write a program to calculate simple interest
(i = (p*r*n)/100)
i = Simple interest
p = Principal amount
r = Rate of interest
n = Number of years
3) Write a C program to find that the accepted number is
Negative, or Positive or Zero.
4) Write a program to read marks of a student from keyboard
whether the student is pass or fail (using if else).
Practical Set 3
3 1) Write a program to read three numbers from keyboard and
find out maximum out of these three. (nested if else)
2) Write a C program to check whether the entered character
is capital, small letter, digit or any special character.
3) Write a program to read marks from keyboard and your
program should display equivalent grade according to
following table (if else ladder)
Marks Grade
100 - 80 Distinction
79 - 60 First Class
59 - 40 Second Class
< 40 Fail
Practical Set 4
4 1) Write a C program to find out the Maximum and Minimum
number from given 10 numbers.
2) Write a C program to find factorial of a given number.
3) Write a program to reverse a number.
4) Write a program to generate first n number of Fibonacci
series.
Practical Set 5
5 1) Write a program to check whether the given number is
prime or not.
2) Write a program to evaluate the series
1^2+2^2+3^2+......+n^2
3) Write a C program to find 1+1/2+1/3+1/4+....+1/n.
4) Write a C program to find 1+1/2!+1/3!+1/4!+.....+1/n!.
Practical Set 6
Write a program to print following patterns :
6
Practical Set 7
7 1) Write a program to find out which number is even or odd
from list of 10 numbers using array.
2) Write a program to find maximum element from 1-
Dimensional array.
3) Write a program to sort given array in ascending order (Use
any one --- Insertion sort, Bubble sort, Selection sort,
Mergesort, Quicksort, Heapsort).
Practical Set 8
8 1) Write a program to reverse string.
2) Write a program to convert string into upper case
3) Write a program that defines a function to add first n
numbers.
4) Write a function in the program to return 1 if number is
prime otherwise return 0.
Practical Set 9
9 1) Write a program to find factorial of a number using
recursion
2) Define a structure type struct personal that would contain
person name, date of joining and salary using this structure to
read this information of 5 people and print the same on screen.
3) Define a structure called cricket that will describe the
following information:
Player name
Team name
Batting average
Using cricket, declare an array player with 50 elements and
write a C program to read the information about all the 50
players and print team wise list containing names of players
with their batting average.
Practical Set 10
10 1) Write a C program to swap the two values using pointers.
2) Write a program for sorting using pointer.
3) A file named data contains series of integer numbers. Write
a c program to read all numbers from file and then write all
odd numbers into file named “odd” and write all even
numbers into file named “even”. Display all the contents of
these file on screen.