C Programs

    Basics Conditionals Loops 1D Arrays 2D Arrays Strings Pointers

Program List - Basics

  1. Print "Hello World"
  2. Arithmetic operations on two integer numbers
  3. Simple Interest
  4. Swap 2 numbers using third variable
  5. Swap 2 numbers without using third variable
  6. ASCII value of a character
  7. Cube of an integer
  8. Cube of an integer using pow() function
  9. x raised to the power of y
  10. Second order Quadratic Equation
  11. sizeof() operator
  12. Calculate Aggregate marks and Percentage marks
  13. Calculate Area and Perimeter of the rectangle
  14. Calculate the Area and Circumference of the circle
  15. Sum of digits of five digit number
  16. Reverse of a five digit number
  17. Sum of first and last digit of a four digit number
  18. Find total number of illiterate men and women
  19. Convert temperature in Fahrenheit to Centigrade
  20. Find cost price of one item
  21. Add 1 to each digit of a five digit number
  22. Find the number of currency notes required
  23. Convert distance in km to meters, feets, inches and centimeters
  24. Calculate gross salary
  25. Calculate month salary of an employee
  26. Convert specified days into years, weeks and days
  27. Distance between two points
  28. Find the third angle of a triangle
  29. Convert integer (in seconds) to hr, min and sec
  30. Read formatted time through scanf()