Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. /**
  2. * Sternchen.java Demonstration der while-Schleife Ausgabe von 10 Sternchen in
  3. * einer Zeile auf den Bildschirm
  4. */
  5. class Sternchen {
  6. public static void main(String[] args) {
  7. int max = 40; // Zahl der Sternchen
  8. String ausgabe = "*";
  9.  
  10. while (max <= 100) {
  11. System.out.print(ausgabe);
  12. max++;
  13. }
  14.  
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement