Question: Assume that x is an integer variable, y is a floating - point variable, and z is a character variable. Write statements in C +
Assume that x is an integer variable, y is a floatingpoint variable, and z is a character variable. Write statements in C to perform the following operations:
A Add to x
B Square the value of y
C Divide x by and store the result in y
D Store & in z
E Display the values of y and z on the screen.
F Display the rightmost digit of x on the screen.
G Display the number of bytes used by an integer variable.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
