Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package skola;
- import java.util.Scanner;
- /**
- *
- * @author Felix 1
- */
- public class Uppgift83 {
- /**
- * @param args the command line arguments
- */
- public static void main(String[] args) {
- Scanner inmatning = new Scanner(System.in);
- System.out.print("Antalet rader: ");
- int rader = inmatning.nextInt();
- System.out.print("Antalet kolumner: ");
- int kolumner = inmatning.nextInt();
- for(int i = 0; i < rader; i++)
- {
- for(int x = 0; x < kolumner; x++)
- {
- System.out.print("*");
- }
- System.out.println("");
- }
- }
- }
Add Comment
Please, Sign In to add comment