Showing posts with label JAVA LOOP CODE. Show all posts
Showing posts with label JAVA LOOP CODE. Show all posts

Thursday, 19 January 2012


This is code is to Print Hind Language Character on screen.
This code is Shared by Mr. Deepak Gupta.
It is made using loop, the loop start at 2309 to 2362 which includes all Hindi Character.
It use Unicode encoding which includes all human readable language, if you increase the number you will see other character.

Code:
// Java Program to Print Hindi Language Character
public class k_kha
{
public static void main()
    {
    char c;
    }
for(c=2309;c<2360;c++)
{
  System.out.print(" "+c);
}System.out.print();
}

Sample Output:

Comment bello for your Query and Feedback :)

Prof.Mahendra Kanojia

Tuesday, 10 May 2011


 Program to Display Multiplication Table- loop


Code:
/* Program to Display Multiplication Table */
class MultiplicationTable{
      public static void main(int num){
      
      System.out.println("*****MULTIPLICATION TABLE*****");
      for(int i=1;i<=num;i++){
         for(int j=1;j<=num;j++){
            System.out.print(" "+i*j+" ");
         }
         System.out.print("\n");
      }
  }
}

Comment below for your Query and Feedback... :)
Prof.Mahendra Kanojia