fork download
  1.  
  2. #include<stdio.h>
  3. #define TNOCHAR 128 /* Total Number of characters is 128: 0 - 127 */
  4.  
  5. int main(void)
  6. {
  7. int c,i,j;
  8.  
  9. int character[TNOCHAR];
  10.  
  11. for(i=0;i<TNOCHAR;++i)
  12. character[i] = 0;
  13.  
  14. while((c=getchar())!=EOF)
  15. ++character[c];
  16.  
  17. for(i=0;i<TNOCHAR;++i)
  18. {
  19. putchar(i);
  20.  
  21. for(j=0;j<character[i];++j)
  22. putchar('*');
  23.  
  24. putchar('\n');
  25. }
  26. return 0;
  27. }
  28.  
Success #stdin #stdout 0s 9432KB
stdin
Standard input is empty
stdout









	























 
!
"
#
$
%
&
'
(
)
*
+
,
-
.
/
0
1
2
3
4
5
6
7
8
9
:
;
<
=
>
?
@
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
[
\
]
^
_
`
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
{
|
}
~