C Programs

    Basics Conditionals Loops 1D Arrays 2D Arrays Strings Pointers

Program List - Conditionals

  1. Greater of two numbers
  2. Even or Odd
  3. Even or odd using ternary (conditional) operator
  4. character is vowel or not
  5. Vowel or not using conditional (ternary) operator
  6. Leap year or not
  7. Whether the triangle is equilateral, scalene or isosceles
  8. Triangle is valid or not
  9. Three digit number is armstrong number or not
  10. Number is divisible by second number or not
  11. Greatest of three numbers using else-if ladder
  12. Greatest of three numbers using nested if-else
  13. Greatest of three numbers using conditional (ternary) operator
  14. Number entered is positive, negative or zero using else-if ladder
  15. Number entered is positive, negative or zero using nested if-else
  16. Reverse of a three digit number and check for palindrome
  17. Greater of two numbers using ternary (conditional) operator
  18. Roots of a quadratic equation
  19. Three digit number problem
  20. Convert uppercase to lowercase and vice versa
  21. Find the coordinate in which the point (x,y) lies
  22. Entered time is valid or not
  23. Character is a digit, alphabet or special symbol
  24. Absolute value of a number
  25. Three points on straight line or not
  26. Point lies inside, outside or on the circle
  27. Profit or loss
  28. Convert temperature from Fahrenheit to Celsius and vice versa
  29. Number of days in a month
  30. Area of various shapes