Question: #include int main ( int argc, char const * argv [ ] ) { int input _ number; int digits _ seen [ 1 0
#include
int mainint argc, char const argv
int inputnumber;
int digitsseen;
printfEnter a number: ;
scanfd &inputnumber;
int n inputnumber;
int digit;
while n
digit n ;
digitsseendigit;
n ;
int hasRepeated ;
forint i ; i ; i
if digitsseeni
printfd is repeated d times
i digitsseeni;
hasRepeated ;
if hasRepeated
printfNo repeated digit
;
return ;
Having issues making this code produce the input and out below can anyone help improve this code?
Input:
ectoplasm
soylent
replicant
clockwork
strangelove
Output:
pm
y
pi
kwk
gv
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
