Skip to content

Commit

Permalink
Source code lesson 14
Browse files Browse the repository at this point in the history
  • Loading branch information
codershiyar committed Feb 20, 2022
1 parent e706524 commit dbc95a1
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Lesson 14 - الدرس/App.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

public class App {

public static void main(String[] args) {

int counter = 10;
do{
System.out.println(counter + "تم تنفيذ اوامر");
counter--;
}while(counter>= 0);


}
}

// Java do-while Loop
// ---------------------------------------------------------------------------
// سيتم دائمًا تنفيذ اوامر مرة واحدة على الأقل ، حتى إذا كان الشرط خاطئًا
// لأنه يتم تنفيذ التعليمات البرمجية قبل اختبار الشرط
// ---------------------------------------------------------------------------

// do {
// // code block to be executed الاوامر الذي ترغب بتنفيذها

// }
// while (condition الشرط);

0 comments on commit dbc95a1

Please sign in to comment.