• mamarguerat@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago
    private void GenerateCode(){
      println("private bool IsEven(int number){");
      println("if (number == 1) return false");
      for(int i == 2; true; i += 2){
        println("if (number == " + i.tostring() + " return true";
        println("if (number == " + (i + 1).tostring() + " return false";
      }
    }