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 |
Tags
- Sequelize Error: Dialect needs to be explicitly supplied as of v4.0.0
- 어셈블리어
- react
- S3
- 반응형 페이지 좌표 변환
- 이미지 좌표 추출
- credential error
- CSS
- ogr2ogr
- C언어
- 설치완료안됨
- Unable to find the global bin directory
- rwdImageMaps
- AWS CodePipeline
- 이미지 맵
- 김골라
- node
- AWS
- GeoJSON object too complex/large
- expo
- can't getting credentials
- Error:error:0308010C:digital envelope routines::unsupported
- ERR_PNPM_NO_GLOBAL_BIN_DIR
- AWS CodeBuild
- nodejs
- NODE_VERSION
- EC2
- aws ec2
- netlify variables
- SASS
Archives
- Today
- Total
ImFe's study
[C] 14681번 - 사분면 고르기 본문
보자마자 goto를 한번 써봐야겠다는 생각이 들었다.
#include <stdio.h>
int main()
{
int x, y;
scanf("%d\n", &x);
scanf("%d\n", &y);
if(x>0)
goto ilsa;
else
goto samsa;
ilsa:
if(y>0)
{
printf("1\n");
goto exit;
}
else
{
printf("4\n");
goto exit;
}
samsa:
if(y<0)
{
printf("3\n");
goto exit;
}
else
{
printf("2\n");
goto exit;
}
exit:
return 0;
}
그러지 말았어야 했다
'Programming > C언어 백준 풀이' 카테고리의 다른 글
[C] 2739번 - 구구단 (0) | 2020.12.13 |
---|---|
[C] 2884번 - 알람시계 (0) | 2020.12.13 |
[C] 2753번 - 윤년 (0) | 2020.12.09 |
[C] 9498번 - 시험 성적 (0) | 2020.12.08 |
[C] 1330번 - 두 수 비교하기 (0) | 2020.12.08 |
Comments