public class Sum

{

   public static void main ( String args[] )

   {

      int total = 0

      for ( int number = 2 ; number <= 20 ; number += 2 )

      total += number ;

      System.out.printf( "Sum is %d\n", total );

   }

}

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 a25561970 的頭像
    a25561970

    萬花筒

    a25561970 發表在 痞客邦 留言(0) 人氣()