C programs list

Basic programs

  1. Program to print "CAPSCOM TECHNOLOGY"
  2. Program to display output as given below.
    Name Rama
    Age 18
    Country India


Variable based programs

  1. Program to create a variable that will store student age.
  2. Program to create a variable that will store salary with decimal part.

Operator based programs

  1. Program to add, subtract, multiply, divide two number.
  2. Program to calculate area of following shapes
    Circle π*radius2
    Square side * side
    Rectangle length * width
    Right angle triangle 0.5 * base * height


  3. Program to calculate perimeter of following shapes
    Circle 2*π*radius
    Square 4*side
    Rectangle 2*(length+ width)
    Right angle triangle side1 + side 2 + side 3
© 2016 - 2022, All Rights are Reserved.