2. Determine The Output (if Any) Of Each Code Segment Below In Figure 9 For The Given Value Of N. Write The Text \"\" If The Code Does Not Print Anything. Provide The Output In Table 5. (3 Marks) If (n >=0) If (n

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

2. Determine the output (if any) of each code segment below in Figure 9 for the given value of n. Write the text "" If the code does not print anything. Provide the output in Table 5. (3 marks) if (n >=0) if (n<=10) printf( "Hello "); else printf ("Hi"); printf("World "); Figure 9 Table 5: Input, n output -1 20 5 3. Write the if statement code fragment to satisfy the given condition Check the condition of a soldier candidate to be of age between 18 to 30 years, weight must be between 50 to 65kg and height must be greater than 156m. Display Pass or Fail based on the condition. Answer: (3 marks) 11

已邀请: