#include <stdio.h>
int main() {
float a[10];
int f = 0;
printf("Enter 10 float values:\n"); for (int i = 0; i < 10; i++)
for (int i = 0; i < 9 && !f; i++)
{for (int j = i + 1; j < 10; j++) {
if (a[i] == a[j])
f = 1;
}
}
printf("Duplicates: %s\n", f
? "Yes" : "No"); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpIHsKICAgIGZsb2F0IGFbMTBdOwogICAgaW50IGYgPSAwOwoKICAgIHByaW50ZigiRW50ZXIgMTAgZmxvYXQgdmFsdWVzOlxuIik7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IDEwOyBpKyspCiAgICAgICAgc2NhbmYoIiVmIiwgJmFbaV0pOwogICAgICAgIGZvciAoaW50IGkgPSAwOyBpIDwgOSAmJiAhZjsgaSsrKQogICAgICAgICB7Zm9yIChpbnQgaiA9IGkgKyAxOyBqIDwgMTA7IGorKykgewogICAgICAgICAgICBpZiAoYVtpXSA9PSBhW2pdKQogICAgICAgICAgICAgICAgZiA9IDE7CiAgICAgICAgfQogICAgfQoKICAgIHByaW50ZigiRHVwbGljYXRlczogJXNcbiIsIGYgPyAiWWVzIiA6ICJObyIpOwogICAgcmV0dXJuIDA7Cn0K