1083번문제
2023. 7. 22. 00:00ㆍ개발 공부/code up 문제
// test2.cpp : 이 파일에는 'main' 함수가 포함됩니다. 거기서 프로그램 실행이 시작되고 종료됩니다.
//
#include <iostream>
#include<stdio.h>
using namespace std;
//1083
int main() {
int i, n;
cin >> n;
for (i = 1; i <= n; i++)
{
if (i % 3 == 0)
cout << "X";
else
cout << i;
}
return 0;
}