Computer Science, asked by rakeshrajak2715, 8 months ago

At least 5 important differences between all data structure using tubular format

Answers

Answered by ıtʑFᴇᴇʟɓᴇãᴛ
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