#include <stdio.h>
int main() {
//두 수의 차이(절댓값) 구하기
/*
int n1, n2, result;
scanf("%d %d", &n1, &n2);
result = n1 - n2;
if(result < 0){
result = result * -1;
}
printf("%d\n", result);
*/
//두 수 중 더 작은 수 구하기
/*
int n1, n2;
scanf("%d %d", &n1, &n2);
if(-1000 <= n1 && n1 <= 1000 && -1000 <= n2 && n2 <= 1000 ){
if(n1 < n2){
printf("%d\n", n1);
}else if(n1 > n2){
printf("%d\n", n2);
}else{
return 0;
}
}
*/
//3씩 커지는 숫자 나열하기
int k, n;
scanf("%d %d", &k, &n);
for(int i=1;i<=n;i++){
printf("%d ", k);
k+=3;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: