Government Enginnering College, Valsad: List of Practicals
Government Enginnering College, Valsad: List of Practicals
LIST OF PRACTICALS
PRACTICAL-SET-1
1. Write a program to print "HELLO FRIENDS".
2. Write a program that reads two nos. from key board and gives their addition, subtraction,
multiplication, division and modulo.
3. Write a program to convert days into months and days.
4. 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.
5. Write a program to solve quadratic equation.
6. Write a C program to enter a distance in to kilometre and
convert it in to meter, feet, inches and centimetre.
PRACTICAL-SET-2
1. Write a C program to find that the accepted number is negative, or positive or zero.
2. Write a program to read marks of a student from keyboard whether the student is pass or
fail.(using if else).
3. Write a program to read three numbers from keyboard and find out maximum out of these
three. (nested if else)
PRACTICAL-SET-3
1. Write a C program to find out the Maximum and Minimum number from given 10
numbers.
PRACTICAL-SET-6
1. Write a C program to read and store the roll no and marks of 20 students using array.
2. Write a program to find out which number is even or odd from list of 10 numbers using array
3. Write a program to find maximum element from 1-Dimensional array.
PRACTICAL-SET-7
1. Write a program to replace a character in given string.
2. Find length of string using strlen( ) function.
3. Find given string is palingrom or not using string library function.
4. Write a program to count total words in text.
PRACTICAL-SET-8
1. Write a program to read structure elements from keyboard.
2. Write a program to find factorial of a number using recursion.
3. Write a function Exchange to interchange the values of two variables, say x and y. illustrate the
use of this function in a calling function.
4. Write a function in the program to return 1 if number is prime otherwise return 0.
5. Design a structure student_record to contain name, branch and total marks obtained. develop
a program to read data for 10 students in a class and print them.
PRACTICAL-SET-9
1. Write a program to print address of variable using pointer.
2. Write a program using pointer and function to determine the length of string.
3. Write a program for sorting using pointer.
PRACTICAL-SET-10
1. Write a C program to swap the two values using pointers.
2. Write a program using pointer to copy one string to another string.
3. Write a program to access elements using pointer.