Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  code 1
Language: C/C++
Code:
#include <stdio.h>
int main()
{
int x,y,a,b,c,p,q,r;
printf("Consider the two equations to be in the foolowing formatn");
printf("ax+by=cn");
printf("px+qy=rn");
printf("enter values for a,b,c,p,q,r");
scanf("%f%f%f%f%f%f",&a,&b,&c,&p,&q,&r);
x=(c*q-b*r)/(a*q-b*p);
y=(p*c-q*r)/(b*p-a*q);
printf("The intersection point is:n");
printf("x=%.2f",x);
printf("y=%.2f",y);
    return 0;
}
     
          
Comments: