Guest User

Untitled

a guest
Oct 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. class ForFun
  4. {
  5. public static void main(String args[])
  6. {
  7. System.out.println( "Hej" );
  8.  
  9. Scanner skanna = new Scanner(System.in);
  10. System.out.print( "Enter a number: " );
  11. int i = skanna.nextInt();
  12. int b = 1;
  13. while(b < i + 1)
  14. {
  15. System.out.print( "\nThe number " + i + " was printed " + i + " times" );
  16. b++;
  17. }
  18. }
  19. }
Add Comment
Please, Sign In to add comment