C Programming Lab
C Programming Lab
t Code t e l l
Core - Practical - I – 4 5 Practica
Programming in C l
Lab
Course Outcome:
1. Write a program for find the max and min from the three numbers.
2. Write the program for the simple, compound interest.
3. Write program for students marks grading.
4. Write a C program, which takes two integer operands and one operator from the
user, performs the operation and then prints the result. (Consider the operators +,-,*, /,
% and use Switch Statement)
5. Write a C program to find the sum of individual digits of a positive integer and test
given number is palindrome.
6. Write a C program to generate all the prime numbers between 1 and n, where n is a
value supplied by the user.
7. Write a C program to find the roots of a Quadratic equation.
8. Write a C program that uses functions to perform the following:
a) Addition of Two Matrices b) Subtraction of Two Matrices.
9. Write a C program to determine if the given string is a palindrome or not using
pointer.
10. Write a C program to count the lines, words and characters in a given text.
11. Write a C program which copies one file to another.
12. Write a C program to reverse the first n characters in a file. (Note: The file name
and n are specified on the command line.)