Question: ( ii ) a = 1 , b = 0 , c = 0 ( iii ) a = 2 , b = 5 ,
ii
iii
iv
v
vi
vii
viii length width
ix length width
a
:
print d is equal to
print real
if :
print
print d is
print two roots"
print d is less than zero"
print imaginary
c
a b ceval input Enter abc:
else:
b
input values of
if
if : print The remainder is zero"
else: print The remainder is nonzero"
print The remainder is nonzero" print Remainder of a division b is: r
d
length, width evalinputEnter length and width:
if length width:
print The area of the square is: lengthlength
print The area of the rectangle is: lengthwidth
Exercise : See the four program fragments below. Determine the outputs of the fragments in for the
following sets of values for and and length and width. Where the body of the if andor else is
missing fill it in
i
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
