Private Sub CommandButton1_Click()
Columns("B:C").ColumnWidth = 22
range("a1").Value = "Number"
range("b1").Value = "Square of the Number"
range("c1").Value = "Square root of the Number"
range("a2:c2").Value = 1
Dim x As Integer
If x = 0 Then
x = 2
Else
x = x + 1
End If
For x = 2 To 17
Cells(x, 1).Interior.Color = RGB(178, 178, 178)
Cells(x, 1).Value = (x - 2) + 1
Cells(x, 2).Value = ((x - 2) + 1) ^ 2
Cells(x, 3).Value = ((x - 2) + 1) ^ (1 / 2)
Next x
End Sub