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
- SASS
- CSS
- react
- netlify variables
- expo
- Error:error:0308010C:digital envelope routines::unsupported
- Unable to find the global bin directory
- ERR_PNPM_NO_GLOBAL_BIN_DIR
- AWS CodePipeline
- AWS
- 설치완료안됨
- 김골라
- can't getting credentials
- rwdImageMaps
- C언어
- 이미지 맵
- GeoJSON object too complex/large
- credential error
- 반응형 페이지 좌표 변환
- ogr2ogr
- 이미지 좌표 추출
- AWS CodeBuild
- 어셈블리어
- EC2
- node
- NODE_VERSION
- nodejs
- Sequelize Error: Dialect needs to be explicitly supplied as of v4.0.0
- S3
- aws ec2
Archives
- Today
- Total
ImFe's study
10년간의 월급 구하기, 원의 면적 계산하기 본문
#include <stdio.h>
#include <windows.h>
#define PHI 3.141592
int main(void)
{
int salary, deposit, year;
float area, radius;
printf("당신의 10년간 월급(원) 총액을 계산하는 프로그램입니다.\n");
printf("월급을 입력하세요 : \n");
scanf_s("%d", &salary);
printf("당신의 10년간 월급 총액은 %d원 입니다.\n", salary * 120); //특별한 문제없이 해결
printf("원의 면적을 계산하는 프로그램입니다.\n");
printf("반지름을 입력하세요 : \n");
scanf_s("%f", &radius);
printf("원의 면적은 %f입니다.", radius*radius*PHI); //입출력되는 자료형이 일치하지 않아서 조금 헤맸음
system("pause");
return 0;
}
객체지향 프로그래밍 수강생 기량 평가 과제중 1번문제와 2번문제
'Programming > C언어 백준 풀이' 카테고리의 다른 글
[C] 10718번 - We love kriii (0) | 2020.12.07 |
---|---|
[C] 2557번 - Hello World (0) | 2020.12.07 |
객체지향 프로그래밍 과제(rep3) (0) | 2020.04.22 |
객체지향프로그래밍 과제-아스키코드 표 출력(C++) (0) | 2020.04.11 |
실습과제-1 배열에 관련된 프로그래밍 (0) | 2020.04.03 |
Comments