Answer to Question #270039 in C for Sherlock

Question #270039

Write a C program to find (x+b)^2 output.





1
Expert's answer
2021-11-22T09:34:06-0500
#include <stdio.h>
int main()
{
	float x,b,result;
	
	printf("Enter x and b: ");
	scanf("%f %f", &x, &b);
	result= (x+b)*(x+b);
	printf("(%.2f + %.2f)^2 = %.2f\n", x,b,result);


	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