Computer Science, asked by maggie48, 10 months ago

write a program to display the equation of a line in the form ax+by=c for a=5,b=8,c=18​

Answers

Answered by AadilPradhan
0

Answer:

java.util.*;

public class line

{

    public static void main(String args[])

    {

          int a =5;

          int b=8;

          int c=18;

          System.out.println("Equation of line : "+a"x+"+b"y="+c);  

    }

}

Explanation:

The equation of line is y+mx=c where m is the slope and c is the y- intercept. This program displays the value of y,m,c in the form of equation of line.

Similar questions