fork download
  1. import 'dart:io';
  2.  
  3. void main() {
  4.  
  5. int n = 5;
  6. if(n%2 == 0 || n < 3){
  7. print("n is even: $n");
  8. return;
  9. }
  10.  
  11. print("came here");
  12.  
  13.  
  14.  
  15.  
  16. int j = (n-1)+(n+2);
  17. print(j);
  18. return;
  19.  
  20. for(int i = 1; i <= n+2; n++){
  21.  
  22.  
  23. int j = (n-2)+(n+2);
  24. print(j);
  25.  
  26. }
  27.  
  28. }
Success #stdin #stdout 1.52s 131708KB
stdin
Standard input is empty
stdout
came here
11