코딩1 [코드트리 조별과제] C++ 기초 : 단순 반복문 (1) 5. 단순 반복문1. for문 a -> b 1씩 증가for( 초기화식 ; 조건식 ; 증감식 ) { 반복할 코드} 1) 차례로 출력 #include using namespace std;int main() { for (int i = 5; i 2) 입력받는 수 부터 100까지 출력#include using namespace std;int main() { int n; cin >> n; for (int i = n; i 3) 출력결과 1https://www.codetree.ai/missions/4/problems/reading-k201517?&utm_source=clipboard&utm_medium=text 4) 출력결과 8https://www.codetree.ai/missi.. 2024. 8. 14. 이전 1 다음