main function

void main()

Implementation

void main() {
  for (var x in [0, 10, 370, 371]) {
    if (Armstrong_no(x)) {
      print("${x} is armstrong number");
    } else {
      print("${x} is not Armstrong number");
    }
  }
}