Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions .github/ISSUE_TEMPLATE/feature-request.md
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오잉 이건 왜 뜨는거지? 변경사항없는디

Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

## 구현 기능

- 추가하려는 기능에 대해 간결하게 설명해주세요

## 작업 상세 내용

- [ ] TODO
- [ ] TODO
- [ ] TODO

## 참고할만한 자료(선택)
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
## 구현 기능
- 추가하려는 기능에 대해 간결하게 설명해주세요
## 작업 상세 내용
- [ ] TODO
- [ ] TODO
- [ ] TODO
## 참고할만한 자료(선택)
136 changes: 79 additions & 57 deletions main.c
Original file line number Diff line number Diff line change
@@ -1,57 +1,79 @@
#include <stdio.h>
#include "multiply.h"

// review #2
static int s_multi_x = 15;
static int g_multi_y = 4;

int sub(int a, int b)
{
return a - b;
}

int add_numbers(int x, int y)
{
int tmp;
tmp = x + y;
return tmp;
}

int main(void)
{
int a, b, c, d;

printf("Hello World!\n");
printf("두 수를 입력하세요.\n");

scanf("%d %d", &a, &b);
c = add_numbers(a, b);

if (c >= 10)
{
printf("10 이상\n");
}
else
{
printf("10 미만\n");
}

d = sub(a, b);

if (d > 0)
{
printf("두 수의 차이는 양수입니다.\n");
}
else if (d == 0)
{
printf("두 수의 차이는 0입니다.\n");
}
else
{
printf("두 수의 차이는 음수입니다.\n");
}
int multi_result = multiply(s_multi_x, g_multi_y);
printf("Multi : %d\n", multi_result);

return 0;
}
#include <stdio.h>
#include <stdbool.h>
#include "multiply.h"

// review #2
static int s_multi_x = 15;
static int g_multi_y = 4;

bool cmp(int a, int b)
{
if (a > b)
{
return true;
}
else
{
return false;
}
}

int sub(int a, int b)
{
return a - b;
}

int add_numbers(int x, int y)
{
int tmp;
tmp = x + y;
return tmp;
}

int main(void)
{
int a, b, c;

printf("Hello World!\n");
printf("두 수를 입력하세요.\n");

scanf("%d %d", &a, &b);
c = add_numbers(a, b);

if (c >= 10)
{
printf("10 이상\n");
}
else
{
printf("10 미만\n");
}

d = sub(a, b);

if (d > 0)
{
printf("두 수의 차이는 양수입니다.\n");
}
else if (d == 0)
{
printf("두 수의 차이는 0입니다.\n");
}
else
{
printf("두 수의 차이는 음수입니다.\n");
}
int multi_result = multiply(s_multi_x, g_multi_y);
printf("Multi : %d\n", multi_result);

if (cmp(a, b) == true)
{
printf("a is greater than b! :)");
}
else
{
printf("a is not greater than b! :(");
}

return 0;
}