Java for语句用法

2019年2月12日22:34:48 发表评论 1,031 views
/**
 * Created by xabcd on 2019/2/12.
 */
public class TestJava_for
{public static void main(String args[])
{
    int i ,sum = 0;
    for (i=0;i<=10;i++)
        sum +=i;
    System.out.println(sum);
}
}

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: