Write a program
Show the output.
Attachments:
Answers
Answered by
0
Answer:
A python program goes like:
a)
b)
def area_sq(n):
return n*n
area_sq(20)
c)
def pro_dif(m,n):
if m>n:
print( "difference=", m-n, "\nproduct=", m*n)
else:
print( "difference=", n-m, "\nproduct=", m*n)
pro_dif(13,2)
d)
print("S. No", "\tName", "\tMarks")
print("1", "\tSia", "\t67")
print("2", "\tRita", "\t78")
print("3", "\tJay", "\t88")
Similar questions