Write a program in python input total debt and total assets and calculate total-debt-to-total-assets ratio (TD/TA) as Total Debt/Total Assets. Then print if the major portion of the debt is funded by assets (when TD/TA > 1) or greater portion of assets is funded by equity (when TD/TA < 1).
Program :-
tb=float(input("Enter total debt : "))
ta=float(input("Enter total assets : "))
ratio = tb/ta
if ratio > 1 :
print("The major portion of the debt is funded by assets ")
else :
print("Greater portion of assets is funded by equity ")
--------------------------------------------
Output :-
Enter total debt : 5000
Enter total assets : 3000
The major portion of the debt is funded by assets
----------------------------------------------
Enter total debt : 4000
Enter total assets : 10000
Greater portion of assets is funded by equity
0 Comments