강의

멘토링

커뮤니티

Inflearn Community Q&A

ziwon94124565's profile image
ziwon94124565

asked

JAVA Playground where you learn while creating

More sophisticated calendar printing

첫번째 요일 입력받고 줄바꿈하는부분

Written on

·

246

3

for(int i=1; i<=maxday; i++) {

System.out.printf("%3d",i);

if((i+weekday)%7 == 0) {

System.out.println();

}

}

이런식으로 코딩하면 간단히 해결되지않나요??

java

Answer

This question is waiting for answers
Be the first to answer!
ziwon94124565's profile image
ziwon94124565

asked

Ask a question