+ 2

Compound interest or statement ?

What is a compound statement ?

23rd Apr 2017, 1:10 AM
Rishabh
Rishabh - avatar
2 Antworten
+ 7
A statement is a single instruction code which ends with a semicolon ; Ex:int a=10; a++; System.out.println("this is a statement"); A compound statement is a set of statements Grouped inside curly braces {}. Ex: if(true) { System.out.println(true); else System.out.println(false); }
23rd Apr 2017, 2:03 AM
Manideep
Manideep - avatar
+ 1
i have made one program for compound interest https://code.sololearn.com/c21Zs456AjEM/?ref=app
23rd Apr 2017, 10:55 AM
shobhit
shobhit - avatar