728x90 비트 장기86 7/09 복습 복습 한번 써본거 package practice; public class practice { public static void main(String[] args) {int n = 26;//int q = n/10;int r = n%2;//짝수면 되므로 ex)26%2 = 0 그냥 나머지가 2로나눴을때로 판단if(q%2==0) {if(r%2==0) {System.out.println("우동");}else {System.out.println("탕수육");}}else {if(r%2==0) {System.out.println("짜장");}else {System.out.println("짬뽕");}} }} package practice; import java.util.Random; public class practic.. 2018. 7. 10. 7/09배움 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816.. 2018. 7. 9. 이전 1 ··· 19 20 21 22 다음