Practicos05 - int n String user ="" do...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import*;  import java.util.*;  public class Practicos05{    public static Scanner teclado = new Scanner(;    public static void asteriscoln(int n){  for(int i=1; i<=n; i++)  System.out.println("*");}    public static void asteriscofl(int n){  for(int i=1; i<=n; i++)  asteriscoln(n);  System.out.println();}      public static void main(String args[]){ 
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: int n; String user = ""; do{ System.out.print("Ingrese el valor de n (positivo): "); n = teclado.nextInt(); System.out.println(); asteriscofl(n); System.out.println("\n\nDesea continuar?"); user =; }while(user.toLowerCase().equals("si")); } }...
View Full Document

This note was uploaded on 10/29/2009 for the course ITC TC-1002 taught by Professor X during the Spring '09 term at ITESM.

Ask a homework question - tutors are online