Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Sternchen.java Demonstration der while-Schleife Ausgabe von 10 Sternchen in
- * einer Zeile auf den Bildschirm
- */
- class Sternchen {
- public static void main(String[] args) {
- int max = 40; // Zahl der Sternchen
- String ausgabe = "*";
- while (max <= 100) {
- System.out.print(ausgabe);
- max++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement