1、程序设计(高)(1)Problem 22: enter 10 integers from the keyboard for one-dimensional integer, call the fun function to find the smallest number, and output it in the main function. Write the fun function.The Program * * * * * * * *Int min, I;Min = x 0;For (I = 1; I = a, a, K+;The return of k;* * * * * * *
2、* * * * *The function of the function is to find the largest even number of positive integers.The Program * * * * * * * *Int I, amax = 1;For (I = 0; I amax) amax = a I;Return amax;* * * * * * * * * * * *126. Topic: use the function to connect the two strings together and not allow the use of the str
3、cat function.The Program * * * * * * * *Int I, j;For (I = 0).For (j = 0; c2 j! = 0; j + +)C1 I + j = c2 j;C1 I + j = 0;* * * * * * * * * * * *127. Problem: using a function to transpose an n-order square matrix, the input output is implemented in the main function.The Program * * * * * * * *Int I, j
4、, k;For (I = 0; I a j + 1)t = a, j.A j = a j + 1;A m + 1 = t; * * * * * * * * * * * *217. Title: given n data, evaluate the location of the maximum value (if the maximum number occurs multiple times, find the location of the first occurrence).The Program * * * * * * * *Int I, k;K = 0;For (I = 1; I M
5、ax) Max = a I;Else if (a I = a Else if (a I a I) k + +;Return (k);* * * * * * * * * * *programming 226Problem: given n data, find the location of the minimum (if the minimum number appears multiple times, find the location of the first occurrence).The Program is the most important thing in the worldInt I, k;K = 0;For (I = 1; I = 0 The return of y;* * * * * * * * * * * * * * * * * * * * * * * * * * *