Answer to Question #217497 in C for Mohammed Ashiq

Question #217497
Develop a C program to perform z=x-y where x=x+x2 , y=1+y.
1
Expert's answer
2021-07-15T07:11:45-0400
#include <stdio.h>
#include <ctype.h>
#include <string.h>




int main() {


	float x=0;
	float y=0;
	float z;
	
	printf("Enter x: ");
	scanf("%f",&x);
	printf("Enter y: ");
	scanf("%f",&y);
	x=x+x*x;
	y=1+y;
	z=x-y;


	printf("z = %.2f\n\n",z);
	getchar();
	getchar();
	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