fork download
  1. public class SimpleInterest {
  2.  
  3. public static void display() {
  4. Integer p = 1000;
  5. Double r = 7;
  6. Double t = 2;
  7.  
  8. Double si = (p * r * t) / 100;
  9.  
  10. System.debug('Simple Interest: ' + si);
  11. }
  12. }
  13. SimpleInterest.display();
Success #stdin #stdout #stderr 0.01s 8992KB
stdin
Standard input is empty
stdout
Object: UndefinedObject error: did not understand #SimpleInterest
MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254)
UndefinedObject class(Object)>>doesNotUnderstand: #SimpleInterest (SysExcept.st:1448)
UndefinedObject>>executeStatements (prog:1)
stderr
./prog:3: parse error, expected '}'