백준/C#

[C#] 백준 1008번 : A/B

joungdev 2025. 1. 20. 18:10

[C#] 백준 1008번 : A/B

using System;

namespace Hello {
    class Program {
        static void Main(string[] args) {
            string a = Console.ReadLine();
            
            string[] numbers = a.Split(' ');
            double num1 = double.Parse(numbers[0]);
            double num2 = double.Parse(numbers[1]);
            
            Console.Write(num1 / num2);
        }
    }
}

 

반응형

'백준 > C#' 카테고리의 다른 글

[C#] 백준 10926번 : ??!  (0) 2025.01.20
[C#] 백준 10869번 : 사칙연산  (0) 2025.01.20
[C#] 백준 10998번 : A×B  (0) 2025.01.20
[C#] 백준 1001번 : A-B  (1) 2025.01.20
[C#] 백준 1000번 : A+B  (0) 2025.01.20