#include <stdio.h>
int main() {
int num[5];
int min=0;
for(int i=0; i<5; i++){
printf("%d번째 입력: \n", i+1);
scanf("%d", &num[i]);
}
min=num[0];
for (int i=1; i<5; i++){
if (min>num[i]){
min=num[i];
}
}
printf("가장 작은 수는 %d입니다.\n", min);
char str1[5]={'d', 'l', 'a', 'b'};
char str2[7]="daddys";
char str3[]="lab";
printf("%s\n", str1);
printf("%s\n", str2);
printf("%s\n", str3);
char str4[]="Learning a new language can feel overwhelming at first, especially when you are surrounded by unfamiliar sounds and grammar rules. However, consistent daily practice makes a remarkable difference over time. Even spending just fifteen minutes a day on vocabulary or listening exercises can build a strong foundation. Many successful learners emphasize the importance of making mistakes without fear, since errors are simply part of the natural learning process. Additionally, immersing yourself in real conversations, movies, or books written in the target language helps you understand context and cultural nuance. Ultimately, patience and persistence matter far more than natural talent when it comes to mastering a new language.";
int cnt=0;
for (int i=0; i<sizeof(str4); i++){
if (str4[i]==' '){
cnt += 1;
}
}
printf("공백은 %d개 입니다.\n", cnt);
int num1[6];
int n=0;
int o=0;
for(int i=0; i<6; i++){
printf("정수를 입력하세요: \n");
scanf("%d", &num1[i]);
}
for (int i=0; i<6; i++){
if (num1[i] % 2 == 0){
n+=1;
}
else{
o+=1;
}
}
printf("홀수: %d개, 짝수: %d개\n", o, n);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: