Objective : Learn how to use the printf() and scanf() functions in C. 1.1 Write a program to input your student ID, name, height, weight, and blood type, then calculate the value of BMI and output all variables.
Hint:The formula of BMI is weight (kg) / height2 (m). Input : B123456789, 王小明, 183.5, 67.25, O
Output :
1.2 Write a program to print the values of the characters "A", "a" and "0" in octal, decimal and hexadecimal representation.
Note:You can’t declare the values of the characters directly.
Output :
繳交格式及規定 : 程式重點地方請加註解,給分也會酌量參考註解。 請繳交 .c 檔即可。 c 檔的檔名一律統一,以學號為檔名壓縮成一個以學號為名的壓縮檔 上傳, 上傳請一律繳交壓縮檔。