Q. Write a program to input assets, liabilities and capital of a company and test if accounting equation holds true for the given value (i.e., balanced or not).
Answer =
assets = float(input("Enter assets :-"))
liabilities = float(input("Enter liabilities :-"))
capital = float(input("Enter capital :-"))
if assets == liabilities + capital :
print("Balanced")
else :
print("Not balanced")
Where we should use import math compulsory ?
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )