List of Experiments:
- Write a C program to take the radius of a sphere as input and print the volume and surface area of that sphere.
- Write a C program to take a 5-digit number as input and calculate the sum of its digits.
- Write a C program to take three sides of a triangle as input and verify whether the triangle is an isosceles, scalene or an equilateral triangle.
- Write a C program that will take 3 positive integers as input and verify whether they form a Pythagorean triplet or not.
- Write a C program to print all prime numbers between a given range of numbers.
- Write a C program to define a function that will take an integer as argument and return the sum of digits of that integer
- Write a C program to define a macro that can calculate the greater of two of its arguments. Use this macro to calculate the greatest of 4 integers.
- Write a C program to define a recursive function that will print the reverse of its integer argument.
- Write a C program to print the sum of first N even numbers using recursive function.
- Write a C program to sort an array using Bubble sort technique.
- Write a C program that will take the elements of two integer arrays of 5 element each, and insert the common elements of both the array into a third array (Set intersection)
- Write a C program to take 5 names as input and print the longest name.
- Write a C program to define a structure Student that will contain the roll number, name and total marks of a student The program will ask the user to input the details of 5 students and print the details of all the students whose total marks is greater than a given value.
- Write a C program to define a union Contact that will contain the members Mobile no and E-mail id. Now define a structure Employee that will contain name, UID,PhNo, emailId and a variable of type Contact as members. The program will ask the user to give the details of five Employees including contact details. Print the details of all the Employees.
- Write a C program that will ask the user to input a file name and copy the contents of that file into another file.
- Write a C program that will take any number of integers from the command line as argument and print the sum of all those integers.
- Write a C program to process sequential file for payroll data.
- Write a C program to process random file of library data
No comments:
Post a Comment