10진법

·Language/C#
[ 문제 ] B진법 수 N이 주어진다. 이 수를 10진법으로 바꿔 출력하는 프로그램을 작성하시오. 10진법을 넘어가는 진법은 숫자로 표시할 수 없는 자리가 있다. 이런 경우에는 다음과 같이 알파벳 대문자를 사용한다. A: 10, B: 11, ..., F: 15, ..., Y: 34, Z: 35 [ 코드 ]using System.Numerics; string[] s = Console.ReadLine().Split(); string N = s[0]; int B = int.Parse(s[1]); BigInteger result = ConvertToDecimal(N, B); Console.WriteLine(result); static BigInteger ConvertToDecimal(string N, int B..
석영
'10진법' 태그의 글 목록