Practicos04

Practicos04 - int n = 'A'; String user = ""; do{

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

View Full Document Right Arrow Icon
import java.io.*;  import java.util.*;  public class Practicos04{    public static Scanner teclado = new Scanner(System.in);      public static int serieletra(int n)  int letra;  for(int i='A'; i<=n; i++)  letra+='A'+i;  return letra;}      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 = 'A'; String user = ""; do{ System.out.println("Ingrese un caracter (A-Z): "); n = teclado.nextInt(); System.out.println("Desea continuar?"); user = teclado.next(); }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