Logo

dev-resources.site

for different kinds of informations.

break, continue in Dart programming (Bangla)

Published at
12/31/2024
Categories
dart
flutter
loops
bangla
Author
amirul897
Categories
4 categories in total
dart
open
flutter
open
loops
open
bangla
open
Author
9 person written this
amirul897
open
break, continue in Dart programming (Bangla)

Dart-āĻ break āĻāĻŦāĻ‚ continue āĻĻā§āĻŸāĻŋ control flow statement, āĻ¯āĻž āĻ˛ā§āĻĒ āĻŦāĻž condition āĻāĻ° āĻŽāĻ§ā§āĻ¯ā§‡ āĻĒā§āĻ°āĻŦāĻžāĻš āĻ¨āĻŋāĻ¯āĻŧāĻ¨ā§āĻ¤ā§āĻ°āĻŖ āĻ•āĻ°āĻžāĻ° āĻœāĻ¨ā§āĻ¯ āĻŦā§āĻ¯āĻŦāĻšā§ƒāĻ¤ āĻšāĻ¯āĻŧāĨ¤ āĻāĻ—ā§āĻ˛āĻŋ āĻ¸āĻžāĻ§āĻžāĻ°āĻŖāĻ¤ āĻ˛ā§āĻĒā§‡āĻ° āĻŽāĻ§ā§āĻ¯ā§‡ āĻŦā§āĻ¯āĻŦāĻšā§ƒāĻ¤ āĻšāĻ¯āĻŧ āĻ¯āĻ–āĻ¨ āĻ†āĻŽāĻ°āĻž āĻ˛ā§āĻĒā§‡āĻ° execution āĻĨāĻžāĻŽāĻžāĻ¤ā§‡ āĻŦāĻž āĻ…āĻ—ā§āĻ°āĻ¸āĻ° āĻ•āĻ°āĻ¤ā§‡ āĻšāĻžāĻ‡āĨ¤

ā§§. break Statement

break āĻ¸ā§āĻŸā§‡āĻŸāĻŽā§‡āĻ¨ā§āĻŸāĻŸāĻŋ āĻāĻ•āĻŸāĻŋ āĻ˛ā§āĻĒ āĻŦāĻž āĻ¸ā§āĻ‡āĻš āĻ¸ā§āĻŸā§‡āĻŸāĻŽā§‡āĻ¨ā§āĻŸ āĻĨā§‡āĻ•ā§‡ āĻŦāĻžāĻ‡āĻ°ā§‡ āĻŦā§‡āĻ° āĻšāĻ¤ā§‡ āĻŦā§āĻ¯āĻŦāĻšā§ƒāĻ¤ āĻšāĻ¯āĻŧāĨ¤ āĻāĻŸāĻŋ āĻ¤āĻ–āĻ¨ āĻŦā§āĻ¯āĻŦāĻšā§ƒāĻ¤ āĻšāĻ¯āĻŧ āĻ¯āĻ–āĻ¨ āĻ†āĻĒāĻ¨āĻŋ āĻ•ā§‹āĻ¨ā§‹ āĻ¨āĻŋāĻ°ā§āĻĻāĻŋāĻˇā§āĻŸ āĻļāĻ°ā§āĻ¤ āĻĒā§‚āĻ°ā§āĻŖ āĻšāĻ˛ā§‡ āĻ˛ā§āĻĒ āĻŦāĻž āĻ¸ā§āĻ‡āĻš āĻĨā§‡āĻ•ā§‡ āĻŦā§‡āĻ°āĻŋāĻ¯āĻŧā§‡ āĻ†āĻ¸āĻ¤ā§‡ āĻšāĻžāĻ¨āĨ¤

break āĻāĻ° āĻ•āĻžāĻœ:

  • āĻ¯āĻĻāĻŋ āĻ•ā§‹āĻ¨ āĻ˛ā§āĻĒā§‡āĻ° āĻŽāĻ§ā§āĻ¯ā§‡ break āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°āĻž āĻšāĻ¯āĻŧ, āĻ¤āĻžāĻšāĻ˛ā§‡ āĻ¸ā§‡āĻ‡ āĻ˛ā§āĻĒāĻŸāĻŋ āĻ¤ā§ŽāĻ•ā§āĻˇāĻŖāĻžā§Ž āĻĨā§‡āĻŽā§‡ āĻ¯āĻžāĻŦā§‡ āĻāĻŦāĻ‚ āĻĒāĻ°āĻŦāĻ°ā§āĻ¤ā§€ āĻ•ā§‹āĻĄā§‡ āĻšāĻ˛ā§‡ āĻ¯āĻžāĻŦā§‡āĨ¤
  • āĻāĻŸāĻŋ switch āĻ¸ā§āĻŸā§‡āĻŸāĻŽā§‡āĻ¨ā§āĻŸā§‡ āĻŦā§āĻ¯āĻŦāĻšā§ƒāĻ¤ āĻšāĻ˛ā§‡, āĻ¤āĻž āĻ¨āĻŋāĻ°ā§āĻĻāĻŋāĻˇā§āĻŸ case āĻŦā§āĻ˛āĻ• āĻļā§‡āĻˇā§‡ āĻšāĻ˛ā§‡ āĻ¯āĻžāĻŦā§‡ āĻāĻŦāĻ‚ āĻĒāĻ°āĻŦāĻ°ā§āĻ¤ā§€ case āĻŦāĻž default āĻ āĻ¯āĻžāĻŦā§‡ āĻ¨āĻžāĨ¤

Syntax:

break;
Enter fullscreen mode Exit fullscreen mode

Example (For Loop):

for (int i = 1; i <= 10; i++) {
  if (i == 5) {
    break;  // āĻ˛ā§āĻĒā§‡ i == 5 āĻšāĻ˛ā§‡ āĻ˛ā§āĻĒ āĻĨā§‡āĻŽā§‡ āĻ¯āĻžāĻŦā§‡
  }
  print(i);
}
Enter fullscreen mode Exit fullscreen mode

āĻāĻ‡ āĻ•ā§‹āĻĄā§‡, āĻ¯āĻ–āĻ¨ i == 5 āĻšāĻ¯āĻŧ, āĻ¤āĻ–āĻ¨ break āĻ¸ā§āĻŸā§‡āĻŸāĻŽā§‡āĻ¨ā§āĻŸāĻŸāĻŋ āĻšāĻžāĻ˛ā§ āĻšāĻŦā§‡ āĻāĻŦāĻ‚ āĻ˛ā§āĻĒāĻŸāĻŋ āĻĨā§‡āĻŽā§‡ āĻ¯āĻžāĻŦā§‡āĨ¤ āĻ†āĻ‰āĻŸāĻĒā§āĻŸ āĻšāĻŦā§‡:

1
2
3
4
Enter fullscreen mode Exit fullscreen mode

Example (Switch Case):

int day = 3;

switch (day) {
  case 1:
    print('Sunday');
    break;
  case 2:
    print('Monday');
    break;
  case 3:
    print('Tuesday');
    break;
  case 4:
    print('Wednesday');
    break;
  default:
    print('Invalid day');
}
Enter fullscreen mode Exit fullscreen mode

āĻāĻ–āĻžāĻ¨ā§‡, day = 3 āĻšāĻ“āĻ¯āĻŧāĻžāĻ¯āĻŧ case 3: āĻŽāĻŋāĻ˛ā§‡ āĻ¯āĻžāĻŦā§‡ āĻāĻŦāĻ‚ Tuesday āĻĒā§āĻ°āĻŋāĻ¨ā§āĻŸ āĻšāĻŦā§‡āĨ¤ āĻāĻ°āĻĒāĻ° break āĻ¸ā§āĻŸā§‡āĻŸāĻŽā§‡āĻ¨ā§āĻŸāĻŸāĻŋ āĻ¸ā§āĻ¯ā§āĻ‡āĻš āĻĨā§‡āĻ•ā§‡ āĻŦā§‡āĻ°āĻŋāĻ¯āĻŧā§‡ āĻ¯āĻžāĻŦā§‡ āĻāĻŦāĻ‚ āĻĒāĻ°āĻŦāĻ°ā§āĻ¤ā§€ case āĻŦāĻž default āĻŦā§āĻ˛āĻ• āĻĒāĻ°ā§€āĻ•ā§āĻˇāĻž āĻ•āĻ°āĻž āĻšāĻŦā§‡ āĻ¨āĻžāĨ¤

ā§¨. continue Statement

continue āĻ¸ā§āĻŸā§‡āĻŸāĻŽā§‡āĻ¨ā§āĻŸāĻŸāĻŋ āĻāĻ•āĻŸāĻŋ āĻ˛ā§āĻĒā§‡āĻ° āĻŽāĻ§ā§āĻ¯ā§‡ āĻŦā§āĻ¯āĻŦāĻšā§ƒāĻ¤ āĻšāĻ¯āĻŧ, āĻ¯ā§‡āĻ–āĻžāĻ¨ā§‡ āĻāĻŸāĻŋ āĻŦāĻ°ā§āĻ¤āĻŽāĻžāĻ¨ āĻ˛ā§āĻĒā§‡āĻ° āĻšāĻ˛āĻŽāĻžāĻ¨ iteration (āĻšāĻ•ā§āĻ°) āĻŦāĻžāĻĻ āĻĻāĻŋāĻ¯āĻŧā§‡ āĻĒāĻ°āĻŦāĻ°ā§āĻ¤ā§€ iteration āĻļā§āĻ°ā§ āĻ•āĻ°āĻ¤ā§‡ āĻ¸āĻžāĻšāĻžāĻ¯ā§āĻ¯ āĻ•āĻ°ā§‡āĨ¤ āĻāĻŸāĻŋ āĻ˛ā§āĻĒā§‡āĻ° āĻŦāĻ°ā§āĻ¤āĻŽāĻžāĻ¨ āĻšāĻ•ā§āĻ°āĻŸāĻŋ āĻŦāĻžāĻĻ āĻĻāĻŋāĻ¯āĻŧā§‡ āĻĒāĻ°āĻŦāĻ°ā§āĻ¤ā§€ āĻšāĻ•ā§āĻ°ā§‡ āĻšāĻ˛ā§‡ āĻ¯āĻžāĻŦā§‡āĨ¤

continue āĻāĻ° āĻ•āĻžāĻœ:

  • āĻāĻŸāĻŋ āĻ˛ā§āĻĒā§‡āĻ° āĻŦāĻ°ā§āĻ¤āĻŽāĻžāĻ¨ āĻšāĻ•ā§āĻ°āĻŸāĻŋāĻ•ā§‡ āĻ…āĻ—ā§āĻ°āĻžāĻšā§āĻ¯ āĻ•āĻ°ā§‡ āĻĒāĻ°āĻŦāĻ°ā§āĻ¤ā§€ āĻšāĻ•ā§āĻ°ā§‡ āĻšāĻ˛ā§‡ āĻ¯ā§‡āĻ¤ā§‡ āĻ¸āĻžāĻšāĻžāĻ¯ā§āĻ¯ āĻ•āĻ°ā§‡āĨ¤
  • āĻ¸āĻžāĻ§āĻžāĻ°āĻŖāĻ¤ āĻāĻŸāĻŋ āĻ¯āĻ–āĻ¨ āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°āĻž āĻšāĻ¯āĻŧ, āĻ¤āĻ–āĻ¨ āĻ•ā§‹āĻ¨ā§‹ āĻ¨āĻŋāĻ°ā§āĻĻāĻŋāĻˇā§āĻŸ āĻļāĻ°ā§āĻ¤ āĻĒā§‚āĻ°ā§āĻŖ āĻšāĻ˛ā§‡ āĻĒāĻ°āĻŦāĻ°ā§āĻ¤ā§€ iteration āĻšāĻžāĻ˛āĻžāĻ¨ā§‹āĻ° āĻœāĻ¨ā§āĻ¯ continue āĻŦā§āĻ¯āĻŦāĻšāĻžāĻ° āĻ•āĻ°āĻž āĻšāĻ¯āĻŧāĨ¤

Syntax:

continue;
Enter fullscreen mode Exit fullscreen mode

Example (For Loop):

for (int i = 1; i <= 5; i++) {
  if (i == 3) {
    continue;  // i == 3 āĻšāĻ˛ā§‡ āĻĒāĻ°āĻŦāĻ°ā§āĻ¤ā§€ āĻšāĻ•ā§āĻ°ā§‡ āĻšāĻ˛ā§‡ āĻ¯āĻžāĻŦā§‡
  }
  print(i);
}
Enter fullscreen mode Exit fullscreen mode

āĻāĻ‡ āĻ•ā§‹āĻĄā§‡, āĻ¯āĻ–āĻ¨ i == 3 āĻšāĻ¯āĻŧ, āĻ¤āĻ–āĻ¨ continue āĻ¸ā§āĻŸā§‡āĻŸāĻŽā§‡āĻ¨ā§āĻŸāĻŸāĻŋ āĻŦāĻ°ā§āĻ¤āĻŽāĻžāĻ¨ iteration āĻ¸ā§āĻ•āĻŋāĻĒ āĻ•āĻ°ā§‡ āĻĒāĻ°āĻŦāĻ°ā§āĻ¤ā§€ iteration āĻ āĻšāĻ˛ā§‡ āĻ¯āĻžāĻŦā§‡āĨ¤ āĻ†āĻ‰āĻŸāĻĒā§āĻŸ āĻšāĻŦā§‡:

1
2
4
5
Enter fullscreen mode Exit fullscreen mode

āĻāĻ–āĻžāĻ¨ā§‡ 3 āĻĒā§āĻ°āĻŋāĻ¨ā§āĻŸ āĻšāĻ¯āĻŧāĻ¨āĻŋ āĻ•āĻžāĻ°āĻŖ continue āĻāĻ° āĻ•āĻžāĻ°āĻŖā§‡ ā§Š āĻ¤āĻŽ iteration āĻ¸ā§āĻ•āĻŋāĻĒ āĻ•āĻ°āĻž āĻšāĻ¯āĻŧā§‡āĻ›ā§‡āĨ¤

āĻ¸āĻžāĻ°āĻžāĻ‚āĻļ:

  • break: āĻ˛ā§āĻĒ āĻŦāĻž āĻ¸ā§āĻ‡āĻš āĻĨā§‡āĻ•ā§‡ āĻŦā§‡āĻ°āĻŋāĻ¯āĻŧā§‡ āĻ†āĻ¸āĻžāĻ° āĻœāĻ¨ā§āĻ¯ āĻŦā§āĻ¯āĻŦāĻšā§ƒāĻ¤ āĻšāĻ¯āĻŧāĨ¤ āĻāĻŸāĻŋ āĻ˛ā§āĻĒ āĻŦāĻž āĻ¸ā§āĻ‡āĻšā§‡āĻ° execution āĻļā§‡āĻˇ āĻ•āĻ°ā§‡āĨ¤
  • continue: āĻ˛ā§āĻĒā§‡āĻ° āĻŦāĻ°ā§āĻ¤āĻŽāĻžāĻ¨ iteration āĻŦāĻžāĻĻ āĻĻāĻŋāĻ¯āĻŧā§‡ āĻĒāĻ°āĻŦāĻ°ā§āĻ¤ā§€ iteration āĻļā§āĻ°ā§ āĻ•āĻ°āĻ¤ā§‡ āĻŦā§āĻ¯āĻŦāĻšā§ƒāĻ¤ āĻšāĻ¯āĻŧāĨ¤

āĻāĻ‡ āĻĻā§āĻŸāĻŋ āĻ¸ā§āĻŸā§‡āĻŸāĻŽā§‡āĻ¨ā§āĻŸ āĻ•ā§‹āĻĄā§‡āĻ° āĻĒā§āĻ°āĻŦāĻžāĻš āĻ¨āĻŋāĻ¯āĻŧāĻ¨ā§āĻ¤ā§āĻ°āĻŖā§‡ āĻ¸āĻžāĻšāĻžāĻ¯ā§āĻ¯ āĻ•āĻ°ā§‡ āĻāĻŦāĻ‚ āĻ˛ā§āĻĒā§‡āĻ° āĻŽāĻ§ā§āĻ¯ā§‡ āĻ•āĻžāĻ°ā§āĻ¯āĻ•āĻ°ā§€ āĻ¨āĻŋāĻ¯āĻŧāĻ¨ā§āĻ¤ā§āĻ°āĻŖ āĻĒā§āĻ°āĻĻāĻžāĻ¨ āĻ•āĻ°ā§‡āĨ¤

dart Article's
30 articles in total
Favicon
Flutter vs React Native in 2025: A Comprehensive Comparison
Favicon
Deploying Flutter Web Apps using Globe.dev
Favicon
Journey to Clean Architecture: Wrestling with a 10k Line Flutter Legacy Codebase
Favicon
5 Essential Flutter Widgets Every Developer Should Master
Favicon
Mastering Nested Navigation in Flutter with `go_router` and a Bottom Nav Bar
Favicon
Flutter for Beginners: From Installation to Your First App
Favicon
Building a Beautiful Login Screen in Flutter: A Complete Guide
Favicon
Flutter Design Pattern Bussines Logic Component (BLOC)
Favicon
Create Different Type of Flavor on Flutter Application
Favicon
Handling PathAccessException in iOS for File Download
Favicon
Common mistakes in Flutter article series
Favicon
Design Pattern in Flutter MVVM
Favicon
7 Ways to Refactor Your Flutter Application
Favicon
WebRTC vs Agora Video SDK vs ZegoCloud for Video Calling in Flutter: A Comprehensive Comparison
Favicon
From Chaos to Control: The Day I Learned the Magic of Debouncing in Flutter 🚀
Favicon
Syntax of comments in dart
Favicon
My first Dart program
Favicon
Integrate the Gemini REST API in Flutter: Unlock Powerful Generative Language Models for Your Next App
Favicon
Dart Operators Explained in Bangla
Favicon
Control Flow Statements (switch and case) in Dart (Bangla)
Favicon
break, continue in Dart programming (Bangla)
Favicon
Control Flow Statements ( for, while, do-while ) in dart (Bangla)
Favicon
Control Flow Statements ( if, else, else if) in dart (Bangla)
Favicon
Type inference in Dart programming (Bangla)
Favicon
var, final, const in dart programming
Favicon
We are in Top 5 Flutter Of The Year Apps List
Favicon
Class in dart
Favicon
Function in dart
Favicon
Map in Dart
Favicon
List in Dart

Featured ones: