Public class Ex2_4_2
{
Public static void main(String args[])
For (int i=1; i<=5; i++) //声明并初始化循环变量i,设置循环终值i<=5
{ System. out:tpt(+");
//执行循环体,输出i的值
}
System.out. printIn();
转换成while循环程序