-
Notifications
You must be signed in to change notification settings - Fork 8
/
App.java
26 lines (18 loc) · 786 Bytes
/
App.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 الشرط);