Answer to Question #255894 in C for S.D.

Question #255894

Declare integer variables x, y, z and assign the value 10 in the y and 20 in the z.


1
Expert's answer
2021-10-24T13:53:36-0400
#include <stdio.h>


int main()
{
    int y=10;
    int z=20;
    int x=z+y;
    printf("The value of x is:%d ",x);
    printf("\nThe value of y is:%d ",y);
    printf("\nThe value of z is:%d ",z);
    return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS