(加试题)计算整数t的近似算数平方根算法如下:

先取
,然后根据公式计算
,再由
计算
,……直到
,则
为解。
小李编写了一个VB程序实现上述功能:运行程序时,在text1中输入一个正整数,单击命令按钮command1,文本框text2显示该数的算数平方根。

程序代码如下,请阅读完成以下两小题。
Function fun(x As Integer, x0 As Double) As Double
Dim x1 As Double
x1 = (x0 + x / x0) / 2
If Abs(x1 - x0) < 0.00001 Then
fun = x1
Else
fun =
(1) End If
End Function
Private Sub Command1_Click()
Dim t As Integer
Dim k As Double
t = Val(Text1.Text)
k = fun(t, 1)
k =
(2) '保留两位小数的四舍五入
Text2.Text = Str(k)
End Sub
(1)题中函数fun主要采用的算法思想是___________
(2)程序中(1)划线处应填写的代码是_____________
程序中(2)划线处应填写的代码是___________