Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ERR_PNPM_NO_GLOBAL_BIN_DIR
- SASS
- 김골라
- Sequelize Error: Dialect needs to be explicitly supplied as of v4.0.0
- react
- ogr2ogr
- 반응형 페이지 좌표 변환
- 어셈블리어
- rwdImageMaps
- node
- S3
- nodejs
- 이미지 좌표 추출
- AWS CodePipeline
- AWS CodeBuild
- CSS
- C언어
- NODE_VERSION
- Unable to find the global bin directory
- credential error
- 설치완료안됨
- netlify variables
- AWS
- EC2
- 이미지 맵
- expo
- aws ec2
- can't getting credentials
- Error:error:0308010C:digital envelope routines::unsupported
- GeoJSON object too complex/large
Archives
- Today
- Total
ImFe's study
[C] 8393번 - 합 본문
/*#include <stdio.h>
int main()
{
int a;
scanf("%d", &a);
printf("%d", a*(a+1)/2);
return 0;
} */ //공식을 이용한 풀이
#include <stdio.h>
int main()
{
int a=0;
int sum=0;
scanf("%d", &a);
for (int i = 0; i <= a; i++)
{
sum += i;
}
printf("%d", sum);
return 0;
} //증가하는 i값을 이용한 풀이
'Programming > C언어 백준 풀이' 카테고리의 다른 글
[C] 2742번 - N기찍 (0) | 2020.12.14 |
---|---|
[C] 2741 - N찍기 (0) | 2020.12.14 |
[C] 10950번 - A+B - 3 (0) | 2020.12.14 |
[C] 2739번 - 구구단 (0) | 2020.12.13 |
[C] 2884번 - 알람시계 (0) | 2020.12.13 |
Comments