Social Sciences, asked by Proxamicho, 1 month ago

Write a program to INPUT the principle value. Calculate the simple interest for 5 years according to the condition if the principle is greater than or equal 10,000 then take rate percent as 10% else take rate percent as 6%. Display the result with appropriate messages. FORMULA FOR Simple Interest = Principle X Rate X Time / 100
- COMPUTER JAVA PROGRAMMING​

Answers

Answered by raistaiba
1

class simple _intrest

{

public static void main (double principle;int time)

{

if (principle >=10000)

System.out.println("sl ="+principle *time*10/100);

else

system .out .println ("si ="principle*time*6/100

}

}

Similar questions