Question: in c++ 1. Write a program that indicates each of the following: a) Display the message Enter your name: b) Assign the product of variables
in c++
1. Write a program that indicates each of the following: a) Display the message "Enter your name:" b) Assign the product of variables a, b, cand d to variable p. c) The following condition is to be tested in a conditional statement: if x is greater than y, then x is assigned the value 10, otherwise x is assigned the value 20. d) Obtain values for variables a, b, c and d from the keyboard. 14. Assume 1 - 5.3 - 7. k - 4 and m- -2. What does each of the following statements print a) printf("%d" 1 -- S): b) printf("%d" 31-3); c) printf("%d", 1 - 5 &&- k); g) printf("%d", jum. 1 && 10): h) printf("%d", () - m)); i) printf("a", Ick > m)); i) printf("d", 1G> What does the following program segment do? 15. int n - a - 1: int 1, C; for (i - 1; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
