using System; namespace Baekjoon { internal class Program { static void Main(string[] args) { //그냥 콘솔창 예쁘게 꾸미는 코드(심심해서 넣음) Console.BackgroundColor = ConsoleColor.DarkCyan; //입력값 넣을 변수 string[] input; //입력값 0 0 나올때까지 무한 반복 while (true) { //값 입력 input = Console.ReadLine().Split(); //입력값 0 0이면 반복문 중단 if (int.Parse(input[0]) == 0 && int.Parse(input[1]) == 0) { break; } //첫번째 숫자가 두번째 숫자의 약수일경우 else i..