PDA

View Full Version : How this program will work ?


dinesh679
Jul 3, 2014, 02:56 AM
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);
}
}