Commit abe9cfe3 by BellCodeEditor

save project

parent 517cbae4
Showing with 18 additions and 0 deletions
class Hero:
def __init__(self,l,w,h):
self.l = l
self.w = w
self.h = h
def s(self):
self.s=self.l*self.w
print(self.s)
def v(self):
self.v=self.l*self.w*self.h
print(self.v)
a=int(input())
b=int(input())
c=int(input())
q = Hero(a,b,c)
q.s()
q.v()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment