#include <stdio.h>
#include <stdlib.h>
int main()
{
int c;
int i, p, k;
int ndigit[10];
for (i = 0; i < 10; ++i)
ndigit[i] = 0;
while ((c=getchar())!=EOF)
{
if (c >= '0' && c <= '9')
++ndigit[c-'0'];
}
for (p = 0; p < 10; ++p)
{
for (k = 0; k<10; ++k)
{if (10-p >ndigit[k])
printf(" ");
else if (10-p <=ndigit[k])
printf("*");
} printf("\n");
} for (i =0; i<10; ++i)
{
printf("-");
}
printf("\n");
for (i =0; i<10; ++i)
{
printf("%d", i);
} printf("\n");
return 0;
}
.....도와주세요!