Write a program that solves the following equation and displ

Write a program that solves the following equation and displays the value for x and y:

3.4x+50.2y=44.5

2.1x+.55y=5.9

Solution

#include<stdio.h>

int main()

{

float x = ((50.2*-5.9) - (0.55*-44.5)) / ((3.4*0.55) - (2.1*50.2));

float y = ((-44.5*2.1) - (-5.9*3.4)) / ((3.4*0.55) - (2.1*50.2));

printf(\"x = %d\ y = %d\ \",x,y);

return 0;

}

Write a program that solves the following equation and displays the value for x and y: 3.4x+50.2y=44.5 2.1x+.55y=5.9Solution#include<stdio.h> int main() {

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site