제가 for문 까지 들어갔는데요 <div><br></div> <div>문제 : <span style="font-size:9pt;font-family:'돋움';text-align:justify;">정수</span><span style="font-size:9pt;color:#3d4444;font-family:'돋움';text-align:justify;">를 입력받아 </span><span style="font-size:9pt;font-family:'돋움';text-align:justify;">해당 횟수</span><span style="font-size:9pt;color:#3d4444;font-family:'돋움';text-align:justify;">만큼 화면에 </span><span style="font-size:9pt;font-family:'돋움';text-align:justify;">5의 배수</span><span style="font-size:9pt;color:#3d4444;font-family:'돋움';text-align:justify;">를 출력 </span></div> <div><span style="color:#3d4444;font-family:'돋움';text-align:justify;"><span class="Apple-tab-span" style="white-space:pre;"> </span> ex ) 3 = 5, 10, 15</span></div> <div><span style="color:#3d4444;font-family:'돋움';text-align:justify;background-color:#fafaf2;"><br></span></div> <div style="text-align:justify;"><font color="#3d4444" face="돋움">조금 헤메다가</font></div> <div style="text-align:justify;"><font color="#3d4444" face="돋움"><br></font></div> <div style="text-align:justify;"><table class="colorscripter-code-table __se_tbl_ext" cellspacing="0" cellpadding="0" style="color:#f1f2f3;font-family:Consolas, 'Liberation Mono', Menlo, Courier, monospace;font-size:12px;margin:0px;padding:0px;border:none;background-color:#22282a;"><tbody><tr><td style="padding:6px 0px;"></td> <td style="padding:6px;border-right:2px solid rgb(79,79,79);"> <div style="line-height:15.6px;margin:0px;padding:0px;text-align:right;color:#aaaaaa;"> <div style="line-height:15.6px;">1</div> <div style="line-height:15.6px;">2</div> <div style="line-height:15.6px;">3</div> <div style="line-height:15.6px;">4</div> <div style="line-height:15.6px;">5</div> <div style="line-height:15.6px;">6</div> <div style="line-height:15.6px;">7</div> <div style="line-height:15.6px;">8</div> <div style="line-height:15.6px;">9</div> <div style="line-height:15.6px;">10</div> <div style="line-height:15.6px;">11</div> <div style="line-height:15.6px;">12</div> <div style="line-height:15.6px;">13</div> <div style="line-height:15.6px;">14</div></div></td> <td style="padding:6px 0px;"> <div style="line-height:15.6px;margin:0px;padding:0px;"> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;"><span style="color:#a082bd;">#include</span><span style="color:#93c763;"><</span>stdio.h<span style="color:#93c763;">></span></div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;"><span style="color:#93c763;">int</span> main()</div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;">{</div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;"> <span style="color:#93c763;">int</span> int_val;</div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;"> <span style="color:#93c763;">int</span> i <span style="color:#93c763;">=</span> <span style="color:#ffcd22;">5</span>;</div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;"> <span style="color:#93c763;">int</span> num;</div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;"> </div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;"> <span style="color:#93c763;">printf</span>(<span style="color:#ec7600;">"정수를 입력하시오 :"</span>);</div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;"> scanf_s(<span style="color:#ec7600;">"%d"</span>, <span style="color:#93c763;">&</span>int_val);</div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;"> </div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;"> <span style="color:#93c763;">for</span> ( num <span style="color:#93c763;">=</span> <span style="color:#ffcd22;">1</span>; num <span style="color:#93c763;"><</span><span style="color:#93c763;">=</span> int_val ; num<span style="color:#93c763;">+</span><span style="color:#93c763;">+</span> ) {</div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;"> <span style="color:#93c763;">printf</span>(<span style="color:#ec7600;">"5의 배수 : %d\n"</span>, i <span style="color:#93c763;">*</span> num);</div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;"> }</div> <div style="line-height:15.6px;padding:0px 6px;white-space:pre;">}</div></div> <div style="line-height:1.5;text-align:right;margin-top:-13px;margin-right:5px;font-size:9px;font-style:italic;"></div></td></tr></tbody></table><br></div> <div style="text-align:justify;">이렇게 코드를 만들었는데 이것보다 더 효율적으로도 코드를 만들수 있을까요?</div>