0
Why its output is showing error plz tell?
public class Myclass { public static void main(String[] args) { double R = 0.07; double P = 30000; double T = 2; double interest = 0; interest = P * R * T / 100; double Compound interest = 0; Compound interest =P * (1 + R / 100 * R / 100); System.out.println("The simple interest is = " + interest); System.out.println(" The Compound interest is = " + Compound interest); } }
5 odpowiedzi
+ 8
Variable names should not contain space. Change the variable name Compound interest to something else (single word)
+ 1
now i came to know thanks shamima
0
plz tell
0
plz rebuild the code and send me the code again ...