commit - cd77509ab7500d3eaf0a12be089f8b9dcf4aaa16
commit + 475eb200286589fa9b991140abaa9b1c917341c1
blob - 8d86e31ea2888414c6414c8019f5f8e53c655eeb
blob + 6f7ae37c149905c3d5f9725d3ab2df3c9784619d
--- 1-13.c
+++ 1-13.c
}
}
- /* Horizontal histogram */
+ /* Horizontal orientation */
for (int i = 1; i <= last; i++) {
printf("%3d: ", i);
for (int j = 0; j < words[i]; j++) {
printf("\n");
}
- /* Vertical histogram */
+ /* Vertical orientation */
for (int j = mode; j > 0; j--) {
for (int i = 1; i <= last; i++) {
if (words[i] >= j) {
} else {
printf(" ");
}
- if (i == last)
- printf("\n");
}
+ printf("\n");
}
for (int i = 1; i <= last; i++) {
printf("%3d", i);