JAVA programs

Java Program for print alphabet on screen

In this program we use for loop to print a to z alphabet

Program

class Alphabetsprint

{

   public static void main(String args[])

   {

      char ch;

 

      for (ch = 'a'; ch <= 'z'; ch++)

         System.out.println( ch + "  ");

   }

}

When Run The Program Following Output:

a  b  c  d  e  f  g  h  i  j  k  l  m  n  o  p  q  r  s  t  u  v  w  x  y  z 

Description

In this program we use for loop to print a to z alphabet

Releted Programs

© 2017 codewmAll rights reserved.