출제 링크 : https://www.acmicpc.net/problem/1008
1008번: A/B
두 정수 A와 B를 입력받은 다음, A/B를 출력하는 프로그램을 작성하시오.
www.acmicpc.net
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Solution
{
class Program
{
static void Main(string[] args)
{
string[] s = Console.ReadLine().Split();
Console.WriteLine(double.Parse(s[0]) / double.Parse(s[1]));
}
}
}
'Baekjoon 문제풀이' 카테고리의 다른 글
[Baekjoon 1단계(10)] 10430번 : 나머지 (0) | 2021.08.31 |
---|---|
[Baekjoon 1단계(9)] 10869번 : 사칙연산 (0) | 2021.08.31 |
[Baekjoon 1단계(7)] 10998번 : AxB (0) | 2021.08.31 |
[Baekjoon 1단계(6)] 1001번 : A-B (0) | 2021.08.31 |
[Baekjoon 1단계(5)] 1000번 : A+B (0) | 2021.08.31 |