반응형
문제
풀이
#include <stdio.h>
#include <stdlib.h>
int a, b;
void func(){
if(a > b) return;
if(a % 2 == 1) printf("%d ", a);
++a;
func();
}
int main()
{
scanf("%d %d", &a, &b);
func();
return 0;
}
반응형
'개발 > 알고리즘' 카테고리의 다른 글
codeup 2623 (0) | 2021.03.20 |
---|---|
codeup 1905 1부터 n까지 합 구하기 (0) | 2021.03.18 |
codeup 1902 (0) | 2021.03.17 |
codeup 1901 (0) | 2021.03.17 |
codeup 1430 기억력 테스트 2 (0) | 2021.03.15 |
최근댓글