2019-06-08 15:36:40
¨Û Ãßõ
¨á ´ÜÃàURL
|
|
|
| https://humoruniv.com/program6941 URL º¹»ç |
#include
#include
#include
#include
int main£¨void£© {
srand£¨time£¨NULL£©£©;
char abc[] = "apple";
char a[100];
while £¨1£© {
for £¨int i = 0; i < 2; i++£© {
int x = rand£¨£© % 5;
int y = rand£¨£© % 5;
int temp;
temp = abc[x] ;
abc[x] =abc[y];
abc[y] = temp;
}
printf£¨"%s´Â ¾î¶² ´Ü¾î°¡ ½ºÅ©·¥ºíµÈ °ÍÀϱî¿ä?", abc£©;
scanf£¨"%s", a£©;
if £¨scrcmp£¨a, "apple"£© == 0£©
{
printf£¨"ÃàÇÏÇÕ´Ï´Ù."£©;
break;
}
}
return 0;
}