Question: b) Write C++ statements to perform these individual tasks: i) Assign t with the length of string stored in char dessert [30] and then display
b) Write C++ statements to perform these individual tasks: i) Assign t with the length of string stored in char dessert [30] and then display the square value of the length. (1 mark) ii) To test if x is divisible by 3. (1 mark) ii) Interactively store 10 course names and display them using a single variable string courseName. (1 mark) iv) To check if two strings (char awak [10] and char saya [10]) have the same value. (1 mark)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
