List of Experiments

List of Experiments:

  1. Write a C program to take the radius of a sphere as input and print the volume and surface area of that sphere.
  2. Write a C program to take a 5-digit number as input and calculate the sum of its digits.
  3. 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.
  4. Write a C program that will take 3 positive integers as input and verify whether they form a Pythagorean triplet or not.
  5. Write a C program to print all prime numbers between a given range of numbers.
  6. Write a C program to define a function that will take an integer as argument and return the sum of digits of that integer
  7. 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.
  8. Write a C program to define a recursive function that will print the reverse of its integer argument.
  9. Write a C program to print the sum of first N even numbers using recursive function.
  10. Write a C program to sort an array using Bubble sort technique.
  11. 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)
  12. Write a C program to take 5 names as input and print the longest name.
  13. 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.
  14. 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.
  15. Write a C program that will ask the user to input a file name and copy the contents of that file into another file.
  16. 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.
  17. Write a C program to process sequential file for payroll data.
  18. Write a C program to process random file of library data

No comments:

Post a Comment