use C in this thank you

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 10PE
icon
Related questions
Question

use C in this thank you

Count the number of distinct digits in a number.
Input
Input starts with a number N and is followed by N numbers
Output
Output the number of distinct digits in a given number
Limits
1<N< 20
1≤z <1000000
Notes
Problems will have test cases that are not listed in their specification. Your solution must produce the right output for these hidden test cases.
Sample Input #1
3
1
123
1000
Sample Output #1
1
3
2
Copy
Copy
Transcribed Image Text:Count the number of distinct digits in a number. Input Input starts with a number N and is followed by N numbers Output Output the number of distinct digits in a given number Limits 1<N< 20 1≤z <1000000 Notes Problems will have test cases that are not listed in their specification. Your solution must produce the right output for these hidden test cases. Sample Input #1 3 1 123 1000 Sample Output #1 1 3 2 Copy Copy
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Concept of Flowchart
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT