Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class week6Lab2 {
- public static void main(String[] args) {
- Scanner s = new Scanner(System.in);
- System.out.println("Enter the x edge:");
- int x = s.nextInt();
- System.out.println("Enter the y edge:");
- int y = s.nextInt();
- for (int i = 1; i <= x; i++) {
- for (int j = 1; j <= y; j++) {
- System.out.print("*");
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment