77.8k views
1 vote
program 2. write a VB.NET program to solve the linear equation of the form Ax+B=C, i.e x=(C=B)/A (Eg:2x+3=7, where B and C are consonants, A is the coefficient of x)​

User Jeffpowrs
by
4.5k points

1 Answer

7 votes

Answer:

Module Program

Sub Main()

Dim A, B, C, x As Double

A = 2.0

B = 3.0

C = 7.0

x = (C - B) / A

Console.WriteLine($"Solution for {A}x + {B} = {C} is x = {x}")

Console.ReadKey()

End Sub

End Module

Step-by-step explanation:

You have asked this question twice?

User David Vereb
by
4.5k points