2020-12-06から1日間の記事一覧
while文とdo-while文 do-while も while-doも(if文と同じく)一行だけなら{}は不要 int count = 10; do System.out.println("Number is : " + count--); while(count > 0); while(count < 10) System.out.println("Number is : " + count++); while文で{}を使…
while文とdo-while文 do-while も while-doも(if文と同じく)一行だけなら{}は不要 int count = 10; do System.out.println("Number is : " + count--); while(count > 0); while(count < 10) System.out.println("Number is : " + count++); while文で{}を使…