0

Help plecase!

Does anyone know how to do this? "Develops a program in the C + language that performs the next task. The program reads a natural 3-digit rummage [100, 999 and determines if the number contains repeating digits. the message that all digits are different Example In the number 757 the digit 7 is repeated 2 times and the number 589 has all the different digits

26th Apr 2021, 10:31 AM
Pavel Vali
Pavel Vali - avatar
2 Answers
0
Make the number a string. Pick the first character from the string of numbers. Check if the character is repeted in the string. ...................... complete the algorithm
26th Apr 2021, 11:08 AM
Sacalivin Obiri
Sacalivin Obiri - avatar
0
You can just save that numer as string, and use [] operator to take one of these digits and compare with other
26th Apr 2021, 11:08 AM
Michal Doruch