Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int get_pos(void);
- int main(void)
- {
- int res;
- res = get_pos();
- printf("변환값 : %d\n",res);
- return 0;
- }
- int get_pos(void)
- {
- int pos;
- printf("양수입력 : ");
- scanf("%d", &pos);
- return pos;
- }
Add Comment
Please, Sign In to add comment