An algorithm designed to approximate the sum of a convergent infinite series is shown below.
1 OUTPUT 'Enter the upper limit of the sum:'
2 limit_str ← USERINPUT
3 max_terms ← TO_INTEGER(limit_str)
4 total_sum ← 0.0
5 FOR k ← 1 TO max_terms
6 total_sum ← total_sum + 1.0 / (k * k)
7 ENDFOR
Select one option to show the data type of the variable total_sum in the algorithm.
Boolean
Integer
Real
String