(SW전문가아카데미) 2025호 N줄보충

문제 해결 – 수준 1 – N 행 추가

https://swexpertacademy.com/main/code/problem/problemDetail.do?problemLevel=1&contestProbId=AV5QFZtaAscDFAUq&categoryId=AV5QFZtaAscDFAUq&categoryType=CODE

#include <iostream>
using namespace std;
int main()
{
    int N,sum=0;
    cin>>N;
     
    for(int i=1;i<=N;i++)
    {
        sum+=i;
    }
     
    cout<<sum;
    return 0;
}