Use of a For/While loop inside another For/While loop for dual integration

Can anyone please give suggestion for using For/While loop inside For/While loop for integrating a function with respect to two variables say for-

r = (x^2 + (a/y^2))^(-1/2)

Integration is with respect to x and y with limits 0 to 1 for both and ‘a’ is any arbitrary constant.