Write a program to calculate Debt-to-equity (D/E) ratio as [ Total Liabilities / Total shareholders' ] equity after inputting total liabilities and total shareholders' equity. And then print if an investor should invest in the company or not. A D/E ratio greater than 2.0 indicates a risky scenario for an investor.
-----------------------------------------------
Program :-
total_liability = float(input("Enter Total Liabilities : "))
total_equity = float(input("Enter Total shareholders' equity : "))
ratio = total_liability / total_equity
if ratio > 2 :
print("a risky scenario for an Investor")
else :
print("Investor should invest in the company ")
-----------------------------------------------
Output :-
Enter Total Liabilities : 5000
Enter Total shareholders' equity : 4000
Investor should invest in the company
-----------------------------------------------
Enter Total Liabilities : 10000
Enter Total shareholders' equity : 2000
a risky scenario for an Investor
0 Comments