Skip to main content
2 of 4
deleted 4 characters in body
Cody Gray
  • 3.5k
  • 16
  • 28

#VB, 73 bytes

a=Cells(1,1)
x=1
While x<=a
If a Mod x = 0 Then b=b+x
x=x+1
Wend
MsgBox b
remoel
  • 521
  • 3
  • 6