Code up #1042
프로그래밍/Snoopy의 Codeup 정복기
2018. 4. 11. 14:47
1 2 3 4 5 6 7 8 9 10 11 | int t(int a, int b) //함수선언 { return (int)a / b; //a와b로 나눔 } #include <stdio.h> int main() { int a, b; scanf("%d %d", &a, &b); printf("%d\n", t(a,b)); //함수에서 나눈 값 출력 } | cs |
'프로그래밍 > Snoopy의 Codeup 정복기' 카테고리의 다른 글
Code up #1116 (0) | 2018.04.11 |
---|---|
Code up #1054 (0) | 2018.04.11 |
Codeup #1042 (0) | 2018.04.06 |
Codeup #1079 (0) | 2018.04.06 |
Codeup #1173 (0) | 2018.03.28 |