Programs

  1. Write a C program to calculate the area of a rectangle. Take length and width as input.
  2. Write a program that calculates the area of a circle. Take radius as input. Use 3.14 as the value of π.
  3. Write a program to convert temperature from Celsius to Fahrenheit using the formula:
        F = (C × 9/5) + 32
  4. Write a C program to calculate simple interest using the formula:
    SI = (P × R × T) / 100
    Take Principal, Rate, and Time as input.
  5.  Write a C program to calculate the perimeter of a square. Take side as input.
  6. Write a program to input three numbers and display their sum and average.
  7. Write a C program to calculate the volume of a cube. Input: side of the cube.
  8. Write a program to input marks of 5 subjects, calculate total marks and percentage.
  9. Write a C program to convert distance in kilometers to meters and centimeters.
  10.  Write a C program that takes a number as input and prints its square and cube.