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

匿名用户 最后更新于 2021-12-01 19:36 计算机类Computing


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.

已邀请: