At least 5 important differences between all data structure using tubular format
Answers
Answered by
1
Answer:-
import math
def sqApprox(num):
i = 0
minsq = 0 # set lower bound
maxsq = math.ceil(num’l’num)
# set upper bound
while i< maxsq :
# set ‘while’ termination condition
if i*i< =num and i>minsq:
# complete inequality condition
minsq = i
if i*i> =num and i<maxsq:
# complete inequality condition
maxsq = i
i+=l
# update i so that ‘while’ will terminate
return (minsq, maxsq)
Attachments:
Similar questions
Physics,
5 months ago
Math,
5 months ago
Science,
11 months ago
Social Sciences,
1 year ago
Math,
1 year ago