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")



1 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. Where we should use import math compulsory ?

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post