public class WhileCounter
{
public static void main ( String args[] )
{
int counter = 1 ;
while ( counter <= 10 )
{
System.out.printf( "%d " , counter );
++counter;
}
}
}
文章標籤
全站熱搜
public class WhileCounter
{
public static void main ( String args[] )
{
int counter = 1 ;
while ( counter <= 10 )
{
System.out.printf( "%d " , counter );
++counter;
}
}
}