ⓒ 2025 AI교육연구회 withseok. All rights reserved. (위드석)
[블로그 글 내용 상업적 이용금지] 위드석홈 | 위드석개발 | AI교육연구회

Sub FindDivisors()
    Dim num As Integer
    Dim i As Integer
    Dim row As Integer
    
    num = Range("A1").Value
    row = 1
    
    For i = 1 To num
        If num Mod i = 0 Then
            Cells(row, 3).Value = i
            row = row + 1
        End If
    Next i
End Sub

320x100

+ Recent posts