wow
This commit is contained in:
parent
0ebba00685
commit
d42448a9d0
13 changed files with 187 additions and 0 deletions
14
03/sub02.c
Normal file
14
03/sub02.c
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int price;
|
||||
printf("제품의 가격을 입력하세요: ");
|
||||
scanf("%d", &price);
|
||||
|
||||
printf("==== 영수증 ====\n");
|
||||
printf("제품 가격: %d원\n", price);
|
||||
printf("부가세: %d원\n", price * 10 / 100);
|
||||
printf("최종 가격: %d원\n", price * 110 / 100);
|
||||
printf("==============");
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue