Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Classic programming questions of college gospel, suitable for college graduates.
Classic programming questions of college gospel, suitable for college graduates.
C language 100 channel is extremely useful.

1. Decimal number to any number

2. Digital triangle

3. Programming to find the date of the nth day of a year.

Require a whole year's life.

5. When programming finds these two numbers, the formula holds.

6. Function: (It's hard not to read) Programming to find the number of days between two dates (year, month and day) at will.

7. Exchange odd and even binary digits of a number.

8. The topic requires finding two single dog in the array.

9. Convert a numeric string into an integer.

10. Ascending array inserts a number and keeps it in ascending order.

1 1. Enter the year and month to determine how many days there are in a month.

12. ergodic sorting method

Who is the murderer?

14. Enter an integer array to realize the function of adjusting the positions of odd and even numbers in the array, with odd numbers before even numbers.

15. 1 yuan has a bottle of soda, and two empty bottles can be exchanged for one bottle. Ask how many bottles he can drink for 20 yuan.

16. Print a diamond, and enter n to print a diamond of 2*n-1 line.

17. Enter an integer to find the prime number immediately after it?

18. Count sum, sn = 2+22+222+2222+2222.

19. Enter two numbers to find the minimum common multiple and the maximum common factor, which are explained in detail in the code.

20. Is a number+100 a complete square number or+168 a complete square number?

2 1. Digital Pyramid

22. Left hand string

23. Requirements: Write a function to determine whether a string is rotated by another string.

24. Delete duplicate elements from the array.

25.c programming questions 1! + 2! + 3! + 4! ....+N

26. C programming problem of Fibonacci number (circular method and recursive method)

27.c language programming input n, k to the k power of n (recursive and non-recursive)

28. (Recursively) Enter a number and add up every bit of it to output;

29. Realize the function of inverting the elements of a character array, such as "abc", and invert it into "cba".

30. Recursively divide integers

Design of 3 1. function printing multiplication table.

Construct a function to judge whether it is a prime number between 100-200 (a number that can only be divisible by itself and 1).

33. Print odd and even numbers of binary numbers; Print binary sequences separately.

34. Calculate the different digits in the M and N binary. For example, 1 and 7 have two different digits;

Output all boudoir years between 1900 and 2000.

36. Monkeys eat peaches.

37. Select the sorting method to sort in ascending order.

38. bubble sorting method

39. Find the sum of diagonal elements of 3*3 matrix.

40. Store the element values in the integer array in reverse order.

4 1. Yang Hui Triangle

42. Semi-search-must be built in an ordered array.

43. Calculate the number of types with 80 characters in 3 lines.

44. Original text and password

Simulate strcat string concatenation function

46. Analog string (3 methods)

47 analog strcmp

48. Simulate the string copy function strcpy

49.strncpy simulation

50.strncat simulation implementation

5 1 simulation strncmp

52. The (ugly) simulation function strstr looks for substrings.

53. Memory copy function

54. Judge whether a number is a prime number:

Transposition of 53.3*3 matrices

Any even number greater than 2 can represent two prime numbers.

57. Enter four digits and output four characters.

58. Copy the contents of array A to array B, and put 1 * in triplicate.

59. Enter a string and copy the longest letter into another array.

60. 16 base inversion 10 base

6 1. Enter the integer 10 to swap the largest and last positions and the smallest and foremost positions.

62. The number of people reporting is from 1 reporting to 3, and the elements of reporting to 3 are cleared each time.

63. Enter multiple strings and output them after sorting.

64. (Difficult to watch) Enter a string and put a continuous numeric string into another two-dimensional array.

65. Structure pointer problem

66. Three days to fish and two days to dry the net. Is it fishing or drying the net on the nth day?

67. Enter multiple strings and then output the shortest string.

68.3 number, two numbers are the same, find another number.

69. When 1 0,000 people donate, the donation will stop when it reaches 1 0,000 million. Count the number and total amount of donations

70. Specify the location strings in reverse order.

7 1. Number of daffodils

72. Find the prime factor

73. Judge whether a number is a complete square number?

74. Worm problem

75. The situation of students is arranged in structural order.

76. To find the root of a quadratic equation, enter ax +bx+c=0, ab, c.

77. There were 78 Fibonacci rabbits between 100-999, with 7 digits.

78 iterative square root

79. Accumulate the sum of the edge elements of a two-dimensional array.

80. A small problem in comma expression

8 1. A white horse with a hundred bags.

82. Octal to 10 decimal

83.func(func(x++,y++),func( - x,-y)); Function call problem

84. Sailors share peaches.

85 mining prime numbers

86. It is still orderly to save two orderly increasing arrays into another array.

87. Delete the spaces in the string. 88. Insert the contents of the B string into the A string, and the A string will keep improving.

89. Recursively reverse the string.

90 factorization prime factor

9 1. 10 radix to 16 radix.

92. 10 hexadecimal to octal

93. Calculate and output the sum of the largest prime numbers in n 10.

94. Complete figures

95 Print X-pattern

96. Print a hollow square

97. Judge whether an array is orderly.

98. Plastic array deletes the specified number.

99. Add a space in the middle of each element of the character array.

100. rotate characters

10 1. Find the approximate value of sinx.