#calculate volume/area of  rectangle
#2022/11/6
#kumar amrit
# coding: utf-8
import os

y = '1'
while y == '1':
    os.system('clear')

    print('''
      V volume
      A area
      of rectangle
      ''')
  



    opr=input("Enter the opr..(V,A)")
    if opr=="v":
       num1=int(input("Enter the lenth of rectangle:-"))
       num2=int(input("Enter the width of rectangle:-"))
       num3=int(input("Enter the height of rectangle:-"))
       print(num1*num2*num3)
    elif opr=="A":
        num1=int(input("Enter the lenth of rectangle:-"))
        num2=int(input("Enter the width of rectangle:-"))
        print(num1*num2)
   
    else:
        print("invalid opr....")
   
    y = input('\n\t 計算を  1: 続ける other:やめる\n')
print('thanks')
実行結果