#include <stdio.h>
int main() {
// Array เก็บคำทักทายในแต่ละภาษา
const char *greetings[] = {
"Hello (English)",
"สวัสดี (Thai)",
"Hola (Spanish)",
"Bonjour (French)",
"Hallo (German)",
"Ciao (Italian)",
"Olá (Portuguese)",
"Namaste (Hindi)",
"Salaam (Arabic)",
"Konnichiwa (Japanese)",
"Annyeonghaseyo (Korean)",
"Ni Hao (Chinese)",
"Privet (Russian)",
"Guten Tag (German)",
"Merhaba (Turkish)",
"Sawubona (Zulu)",
"Shalom (Hebrew)",
"Jambo (Swahili)",
"Sveiki (Latvian)",
"Salve (Latin)"
};
// วนลูปแสดงคำทักทายในแต่ละภาษา
printf("Greetings in 20 languages:\n\n"); for (int i = 0; i < 20; i++) {
printf("%d. %s\n", i
+ 1, greetings
[i
]); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIC8vIEFycmF5IOC5gOC4geC5h+C4muC4hOC4s+C4l+C4seC4geC4l+C4suC4ouC5g+C4meC5geC4leC5iOC4peC4sOC4oOC4suC4qeC4sgogICAgY29uc3QgY2hhciAqZ3JlZXRpbmdzW10gPSB7CiAgICAgICAgIkhlbGxvIChFbmdsaXNoKSIsCiAgICAgICAgIuC4quC4p+C4seC4quC4lOC4tSAoVGhhaSkiLAogICAgICAgICJIb2xhIChTcGFuaXNoKSIsCiAgICAgICAgIkJvbmpvdXIgKEZyZW5jaCkiLAogICAgICAgICJIYWxsbyAoR2VybWFuKSIsCiAgICAgICAgIkNpYW8gKEl0YWxpYW4pIiwKICAgICAgICAiT2zDoSAoUG9ydHVndWVzZSkiLAogICAgICAgICJOYW1hc3RlIChIaW5kaSkiLAogICAgICAgICJTYWxhYW0gKEFyYWJpYykiLAogICAgICAgICJLb25uaWNoaXdhIChKYXBhbmVzZSkiLAogICAgICAgICJBbm55ZW9uZ2hhc2V5byAoS29yZWFuKSIsCiAgICAgICAgIk5pIEhhbyAoQ2hpbmVzZSkiLAogICAgICAgICJQcml2Z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