fork download
  1. // get goosebumps after listening to the song these many time
  2. Integer gooseBumpsAfter = 4;
  3.  
  4. // Iterate over the map for a maximum 1000 times
  5. Integer n = 1000;
  6.  
  7. for(Integer i=1; i<=n; i++){
  8. System.debug('Listening to song ' + i + ' times');
  9. // break the loop if i equals to gooseBumpsAfter
  10. if(i == gooseBumpsAfter){
  11. break;
  12. }
  13. }
  14.  
Success #stdin #stdout #stderr 0.01s 7804KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
./prog:1: expected expression