Guest User

Untitled

a guest
Jan 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. public class Pattern{
  2.  
  3.     public void gibMusterAus(int a, int b){
  4.         int zeichenZaehler = 0;
  5.         for(int i = 0; i < a; i++){
  6.             for(int g = 0; g < b; g++){
  7.                 if(zeichenZaehler % b == 0){
  8.                     System.out.print(*);
  9.                 }
  10.                 else{
  11.                     System.out.print(“.”);
  12.                 }
  13.                 zeichenZaehler++;
  14.             }
  15.             System.out.print(“\n”);
  16.         }
  17.  
  18. }
  19.  
  20. }
Add Comment
Please, Sign In to add comment