Break ...
package ele;
class contohBreak{
public static void main(String args[]) {
int bee = 22;
do {
bee = bee - 3;
System.out.println ("bembem "+(bee));
if (bee == 10) break;
}while (bee>=3);
}
}
OUTPUT :
bembem 19
bembem 16
bembem 13
bembem 10
BUILD SUCCESSFUL (total time: 2 seconds)
class contohBreak{
public static void main(String args[]) {
int bee = 22;
do {
bee = bee - 3;
System.out.println ("bembem "+(bee));
if (bee == 10) break;
}while (bee>=3);
}
}
OUTPUT :
bembem 19
bembem 16
bembem 13
bembem 10
BUILD SUCCESSFUL (total time: 2 seconds)
0 Response to "Break ..."
Posting Komentar