Integer rows = 5; for (Integer i = 1; i <= rows; i++) { System.debug('*'.repeat(i)); }
Standard input is empty
Object: Integer error: did not understand #rows MessageNotUnderstood(Exception)>>signal (ExcHandling.st:254) Integer class(Object)>>doesNotUnderstand: #rows (SysExcept.st:1448) UndefinedObject>>executeStatements (prog:1)
./prog:2: parse error, expected ')'