List of C# Programs

Here is the list of all C# programs available in this blog. You can find basic level programs as well as advanced level programs. All of these programs have been categorised below. Click on the buttons inside the tabbed menu to explore those categories.


    Basic

  1. Hello, World! program
  2. Addition, subtraction, multiplication and division
  3. Convert a character to ASCII value
  4. Convert ASCII value to a character
  5. Compute quotient and remainder
  6. Swap two variables without third variable
  7. Swap two variables using third variable
  8. Swap two variables using X-OR
  9. Fahrenheit to Centigrade conversion
  10. Centigrade to Fahrenheit conversion
  11. Simple interest
  12. Calculate percentage of a number
  13. Conversion between Kilograms and Grams
  14. Decision making

  15. Check vowel or consonant
  16. Check if a character is a digit
  17. Conversion between uppercase and lowercase letter
  18. Check if a number is positive or negative
  19. Check if a number is even or odd
  20. Find largest among three numbers
  21. Check if a number is a perfect square
  22. Check leap year
  23. Simple calculator
  24. Calculate profit and loss
  25. Roots of quadratic equation
  26. Find the letter grade of a student
  27. Find the age group
  28. Calculate income tax
  29. Display month according to input number
  30. Loop & Recursion

  31. Print natural numbers from 1 to n
  32. Print natural numbers using recursion
  33. Sum of first N natural numbers / Sum of series 1 + 2 + 3 + .. + N
  34. Compound interest
  35. Display N th fibonacci number
  36. Factorial of a number
  37. Display letters from A to Z
  38. Count palindromes between intervals
  39. Pattern

  40. Square pattern
  41. Rectangle pattern
  42. Rhombus pattern
  43. Half diamond pattern
  44. Diamond pattern
  45. Right triangle, Half pyramid pattern
  46. Full pyramid pattern
  47. Inverted full pyramid pattern
  48. Snake number pattern
  49. Spiral pattern
  50. Hollow rectangle pattern
  51. Hollow rhombus pattern
  52. Hollow diamond pattern
  53. Hollow pyramid pattern
  54. Floyd's triangle pattern
  55. Pascal's triangle pattern
  56. Array

  57. Find largest element
  58. Find smallest element
  59. Rotate an array
  60. Bitwise operation

  61. Check if a number is even or odd
  62. Matrix

  63. Check equality of two matrices
  64. Matrix addition
  65. Matrix subtraction
  66. Games

  67. Rock paper scissors random approach

Case

Function & Pointer

Strings

Structure and Union

File Input/Output