Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace órai
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine("Add meg az A pontot");
- double a = Convert.ToDouble(Console.ReadLine());
- Console.WriteLine("Add meg a B pontot");
- double b = Convert.ToDouble(Console.ReadLine());
- double b2 = b;
- double a2 = a;
- double d = Math.Sqrt(b-a)*(b-a)+(b2-a2)*(b2-a);
- Console.WriteLine("A távolságuk: {0}\n",d);
- Console.ReadKey();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement