The document outlines a series of C programming tasks, including programs for basic arithmetic operations, matrix multiplication, temperature conversion, file handling, number swapping, calculator simulation, square root calculation, pyramid construction, compound interest, matrix addition, area calculation using Heron's formula, palindrome checking, recursive factorial calculation, finding min and max in an array, expression evaluation, linear search, string length determination, and student marks processing using structures. Each task is presented with a specific programming challenge. The document serves as a comprehensive guide for practicing various C programming concepts.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
5 views
CP LAB
The document outlines a series of C programming tasks, including programs for basic arithmetic operations, matrix multiplication, temperature conversion, file handling, number swapping, calculator simulation, square root calculation, pyramid construction, compound interest, matrix addition, area calculation using Heron's formula, palindrome checking, recursive factorial calculation, finding min and max in an array, expression evaluation, linear search, string length determination, and student marks processing using structures. Each task is presented with a specific programming challenge. The document serves as a comprehensive guide for practicing various C programming concepts.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1
1.a) Write a C program to Sum and average of 3 numbers.
b) Write a C program to Multiplication two matrices
2.a) Write a C program to Conversion of Fahrenheit to Celsius and vice versa b) Write a C program to write and read text into a file 3.a)Write a C program to swap two numbers using call by reference. b)Write a C program to simulate a calculator using switch case. 4. a) Write a C program to Finding the square root of a given number b) Write a C program to Construct a pyramid of numbers. 5.a) Write a C program to Finding compound interest b) Write a C program to Addition of two matrices 6 a) Write a C program to Area of a triangle using heron’s formulae b) Write a C program to Checking a number palindrome. 7 a) Write a C program to recursive function to find the factorial of a number. b) Write a C program to find the min and max of a 1-D integer array. 8) a)Evaluate the following expressions. i. A+B*C+(D*E) + F*G ii. A/B*C-B+A*D/3 iii. A+++B---A iv. J= (i++) + (++i) b) Write a C program to Perform linear search on1D array. 9) a)Write a C function to find the length of a string. b) Write a C program to Take marks of 5 subjects in integers, and find the total, average in float 10 a) Write a C program to find the total, average of n students using structures b) Write a C program to Find the roots of the quadratic equation.