Question 5 [5 marks Write C statements that perform the following operations: a) Display the statements Congratulations! you have passed the exam on the screen. b) Print 748.223 lett-justified in a 9 digit field and 2 digits of precision C) Read 3 values (type decimal integer, float, character) into variable A, B and C in one statement d) Read a string into character array string e) Declare the variable num1 to be of type float and num2 to be of type integer. Then, assign 18 to variable num1 and 25 to variable num2.
没有找到相关结果