Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   How this program will work ? (https://www.askmehelpdesk.com/showthread.php?t=795815)

  • Jul 3, 2014, 02:56 AM
    dinesh679
    How this program will work ?
    class Multi
    {
    public static void main(String d[])
    {
    int c,r=1;
    int y ;
    System.out.println("multiplicaton of table");
    do
    {
    c=1;
    do
    {
    y=r*c;
    System.out.print(" ");
    System.out.print(y);
    c=c+1;
    }
    while(c<=10);
    System.out.print(" ");
    System.out.println("\n");
    r=r+1;
    }
    while(r<=10);
    }
    }

  • All times are GMT -7. The time now is 11:54 AM.