Code
Practice
Exercises
Xiaolin has organized the practical problems previously published
Click the hyperlink to jump directly
C Language Error Record Private Album
1. C Language | Temperature Conversion
2. C Language | Calculate Deposit Interest
3. C Language | Convert Uppercase A to Lowercase a
4. C Language | Output Real Numbers with %f
5. C Language | Output Love in Sequence
6. C Language | Output Two Numbers in Ascending Order
7. C Language | Ternary Operation to Determine Uppercase
8. C Language | Input a Number, Output Corresponding Result
9. C Language | Grade Classification
10. C Language | Determine Leap Year
11. C Language | Calculate the Sum of 1+2+…+100
12. C Language | Count Donors and Average Donation
13. C Language | Output Numbers Between 100-200 Not Divisible by 3
14. C Language | Output 4*5 Matrix
15. C Language | Calculate the First 30 Fibonacci Numbers
16. C Language | Determine if a Number is Prime
17. C Language | Find Prime Numbers Between 100-200
18. C Language | Three Styles of Multiplication Table
19. C Language | Calculate the Sum of Numbers with Specific Patterns
20. C Language | Heart-Shaped Confession Tool
21. C Language | Print Diamond Shape
22. C Language | Output 10 Numbers in Reverse Order
23. C Language | Bubble Sort Comparison
24. C Language | Swap Rows and Columns of a 2D Array
25. C Language | Find Maximum Element and Its Position in a 3*4 Matrix
26. C Language | Output Pascal’s Triangle
27. C Language | Function to Output I Love You
28. C Language | Function to Compare Sizes
29. C Language | Recursive Age Calculation
30. C Language | Recursive Calculation of n!
31. C Language | Sort 10 Numbers Using Pointers
32. C Language | Calculate Total Average Score and nth Person’s Score
33. C Language | Output 2D Array Elements Using Pointer to Element
34. C Language | Copy String a to String b and Output b
35. C Language | Change Pointer Variable Value
36. C Language | Let User Choose 1 or 2 to Output Max or Min
37. C Language | Store Student Information in a Structure Variable
38. C Language | Program to Count Voting Results
39. C Language | Output Student Information by Score
40. C Language | Output Information from Structure Variable Using Pointer to Structure Variable
41. C Language | Output Information of Student with Highest Average Score
42. C Language | Create Linked List and Output Data in Each Node
43. C Language | Output Data of Several People in the Same Table
44. C Language | Input Characters Until “#” is Entered
45. C Language | Greatest Common Divisor and Least Common Multiple
46. C Language | Translate “China” into Code
47. C Language | Calculate Circumference and Area of Circle, Surface Area and Volume of Sphere
48. C Language | Read Two Characters Using getchar, Output with putchar and printf
49. C Language | Input Number Less Than 1000, Output Square Root
50. C Language | Output 4 Numbers in Ascending Order
51. C Language | Calculate Building Height at a Certain Point
52. C Language | Count Characters: Chinese, English, Spaces, Numbers, and Others
53. C Language | Calculate 1!+2!+…+20!
54. C Language | Output Narcissistic Numbers
55. C Language | Find All Perfect Numbers Under 1000
56. C Language | Calculate the Sum of the First 20 Terms of a Sequence
57. C Language | Free Fall, Calculate Total Distance After 10 Falls
58. C Language | Monkey Eating Peach Problem
59. C Language | Programming to Find 3 Pairs of Players in a Ping Pong Match
60. C Language | Selection Sort for 10 Numbers
61. C Language | Calculate the Sum of Diagonal Elements in a 3*3 Matrix
62. C Language | Insert a Number into an Array in Order
63. C Language | Output Magic Square Matrix
64. C Language | Find Saddle Points in a 2D Array
65. C Language | Count Characters in an Article
66. C Language | Translate Code Back to Original Text and Output Code and Original Text
67. C Language | Concatenate Two Strings Without Using strcat
68. C Language | Compare Strings s1 and s2 Without Using strcmp
69. C Language | Copy Characters from s2 to s1 Without Using strcpy
70. C Language | Copy Vowel Letters from a String to Another String
71. C Language | Output 4 Digit Characters, Each Digit Separated by a Space
72. C Language | Use Recursion to Calculate n-th Order Legendre Polynomial
73. C Language | Recursively Convert an Integer n to a String
74. C Language | Calculate Which Day of the Year a Certain Date Falls On
75. C Language | Output 3 Integers in Ascending Order Using Pointers
76. C Language | Allocate Continuous Storage Space for n Characters
77. C Language | n People Form a Circle, Numbering in Order
78. C Language | Calculate the Length of a String
79. C Language | Input Month Number, Output the Month in English
80. C Language | For n Integers, Move Each Number m Places Back, Move Last m Numbers to the Front
81. C Language | Sort and Output 5 Strings Using Pointer to Pointer
82. C Language | Sort n Integers Using Pointer to Pointer
83. C Language | Selection Sort
84. C Language | Determine if a Triangle is Formed
85. C Language | Calculate the Value of a+aa+…+aa..a
86. C Language | Determine if a Number is a Palindrome
87. C Language | Define Static Variables Using static
88. C Language | Define Variables Using auto
89. C Language | Define Variables Using register
90. C Language | Macro #define Command Practice
91. C Language | Learn to Use &
92. C Language | Learn to Use XOR ^
93. C Language | Learn to Use Bitwise NOT –
94. C Language | Learn to Use Increment Operator
95. C Language | Learn to Use Logical Operators
96. C Language | Count Odd and Even Numbers
97. C Language | Learn to Use Arithmetic Operators
98. C Language | Bonus Distribution Problem
99. C Language | Direct Insertion Sort
100. C Language | Shell Sort
C Language Error Record Private Album
—END—