문제 링크 : https://www.swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5QFuZ6As0DFAUq


문제의 저작권은 SW Expert Academy에 있습니다.



#include <iostream>
 
using namespace std;
 
int main(void) {
    for(int i=0; i<5; i++) {
        for(int j=0; j<5; j++) {
            if(i==j)
                cout << "#";
            else
                cout << "+";
        }
        cout << "\n";
    }
 
    return 0;
}
cs

'C & C++ > SW Expert Academy' 카테고리의 다른 글

SWEA 1938 - 아주 간단한 계산기  (0) 2018.04.27
SWEA 2025 - N줄덧셈  (0) 2018.04.27
SWEA 2029 - 몫과 나머지 출력하기  (0) 2018.04.27
SWEA 2043 - 서랍의 비밀번호  (0) 2018.04.27
SWEA 2046 - 스탬프 찍기  (0) 2018.04.27

+ Recent posts