DEV Community

Cover image for Nested if-else
Coder
Coder

Posted on

Nested if-else

void main() {
  print('Om Namah Shivay');
  //   nested if -else
  int age = 16;
  if (age == 15) {
    print('age = 15');
  } else if (age == 16) {
    print('age = 16');
  } else {
    print('That person neither born  nor die.');
  }
}

Enter fullscreen mode Exit fullscreen mode

I understood

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay