Objective : Learn how to use array and combine with for and while loops to implement some operations. 9.1 Write a program to use the rand() function to generate two twodimensional arrays of size 3*3, then output these matrices and implement addition, subtraction and multiplication operations.
Hint: random between 0 ~ 100.
Output:
9.2 Write a program let the user to input two numbers as the lengths of the two arrays, randomly fill in numbers in the range of 0 to 20, and then perform bubble sort on the first array and insertion sort on the second array. Finally, merge these arrays and output the sorted results.
Input: 7 12
Output :
繳交格式及規定 : 程式重點地方請加註解,給分也會酌量參考註解。 請繳交 .c 檔即可。 c 檔的檔名一律統一,以學號為檔名壓縮成一個以學號為名的壓縮檔 上傳, 上傳請一律繳交壓縮檔。