Search Java Programs

Tuesday, January 19, 2010

Preparing table of a number by using loop

Here is the code of the prorgram:
class  PreparingTable{
public static void main(String[] args) {
int a=25, b=1;
System.out.println("the table of "+a+"= ");
while(b<=10){
int c = a*b;
System.out.println(c);
b = b+1;
}
}
}

No comments:

Post a Comment

Website Design by Mayuri Multimedia