Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Viết chương trình giải phương trình bậc 1: ax + b = 0 nhập 2 số a b từ bàn phím.
- Console.Write("Nhap he so a: ");
- double a = Convert.ToDouble(Console.ReadLine());
- Console.Write("Nhap he so b: ");
- double b = Convert.ToDouble(Console.ReadLine());
- double x = -b/a;
- Console.WriteLine("Phuong trinh {0}x + {1} = 0, Tinh duoc x = {2}", a, b, x);
Add Comment
Please, Sign In to add comment