find the following declaration: int i, j: float x, y; i = 10 y = 20 x = 43.78; y = 5527.0 write a printf statement to print the values of i, j, x, and y:
Added by Laura M.
Step 1
In this case, we have `i`, `j`, `x`, and `y`. Show more…
Show all steps
Your feedback will help us improve your experience
Deepak Kumar and 66 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
III: PROCEDURE: Declare the following variables and print them using printf function: int size = 9; float grade = 1.25; double PI = 3.1416; char gender = 'M'; char message[] = "Hello Everything"; NOTE: Your source code output must be identical to the given sample output. It means you have to strictly follow what are the displayed text labels and casing of characters in the sample output. OUTPUT: size = 9 grade = 1.25 PI = 3.1416 gender = M message = Hello Everything!
Deepak K.
Write a C++ program to declare two integer and one float variables and assign 10, 15, and 12.6 to them respectively. It then prints these values on the screen.
Wei Y.
Suppose x, y, and z are double variables and x = 2.5, y = 6.9, and z = 10.0.What will be in the memory locations of each of the variables after each of the following statements is executed? (For each exercise, use the original declaration.) a. z *= y++ % 7; b. x = (int) y + (14 – z / 7); c. x = z / 3 * --y; d. z /= (int) y / x; e. z = x + y / 4;
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD