def addition(): return(2+2) def sub(): return(2-2) def multiplication(): return(9999999999999999999999*9999999999999999999) def piTest(): return(22/7) if __name__=='__main__': print("Addition :", addition()) print("substraction :", sub()) print("Multiplication :", multiplication()) print("PI :", piTest())
Output :
Addition : 4
substraction : 0
Multiplication : 99999999999999999989990000000000000000001
PI : 3.142857142857143
No comments:
Post a Comment