Answer to Question #217484 in C for Jawahar

Question #217484

Develop a C program to perform z=x-y where x=x+x2 , y=1+y


1
Expert's answer
2021-07-15T02:45:43-0400
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>


int main() {
    
    printf("Please enter x ,x2 and y:");
    int x,y,x2,z;
    scanf("%i%i%i",&x,&x2,&y);
    //calculated x and y
    x=x+x2;
    y=1+y;
z=x-y;
    printf("x=%d  y=%d  z=%d",x,y,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