Wednesday 27 January 2016

Write a program in java to print the english alphabets capital A to Z.

Code:
class AtoZ
{
  public static void main(String args[ ])
  {
    char i;
    for(i='A';i<='Z';i++)
    {
      System.out.print(i+" ");
    }
  }
}

No comments:

Post a Comment