#include <stdio.h>
#include <stdlib.h>
int main() {
//두 수 중 더 작은 수 구하기
int a, b;
scanf("%d %d", &a, &b);
if(a > b){
printf("%d", b);
}else if(a == b){
return 0;
}else{
printf("%d\n", a);
}
//두 수의 차이(절댓값) 구하기
int c, d, result;
scanf("%d %d", &c, &d);
result = c - d;
printf("%d\n", abs(result));
//3씩 커지는 숫자 나열하기
int k, n;
scanf("%d %d", &k, &n);
for(int i=1;i<=n;i++){
printf("%d ", k);
k+=3;
}
printf("\n");
//특수문자(&)가 포함된 문자열 만들기
char str1[100];
char str2[100];
scanf("%s %s", str1, str2);
printf("%s&%s\n", str1,str2);
//한 글자씩 증가하는 부분 문자열 출력하기
char str[10];
scanf("%s", str);
for(int i=1; i<strlen(str);i++){
for(){
printf("%c", str[j]);
}
printf(" ");
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: