While_Use_for_generating_Table_Of_2

class While_Use_Table_Of_2
{
public static void main(String args[])
{
int i=0;
while(i<20)
{
i=i+2;
System.out.println(i);
}
}
}
/**@first initialisation
**@use of while condition
**@ need curly braces
**@ w small letter
*/

No comments:

Post a Comment