Objective : Learn to use if/else and switch statements to do decision making, then combine with for loops to perform some operations. 4.1 Write a program to count the total number of different permutations of the numbers "1", "2", "3", "4" and "5", then output all the results. Output :
4.2 Write a program to let the user input a number and then output 5 consecutive prime numbers greater than this number.
Input: 3
Output :
繳交格式及規定 : 程式重點地方請加註解,給分也會酌量參考註解。 請繳交 .c 檔即可。 c 檔的檔名一律統一,以學號為檔名壓縮成一個以學號為名的壓縮檔 上傳, 上傳請一律繳交壓縮檔。