Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0df4481

Browse files
committed
first of all: we are using shellscript, not c here 😄
1 parent 63f3d53 commit 0df4481

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

vhc

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
#!/bin/bash
2-
read string;
2+
read string
33

4-
string_length=${#string};
5-
iteration=$((string_length=string_length+9));
4+
string_length=${#string}
5+
iteration=$((string_length=string_length+9))
66

77
function printComments {
88
for (( c=0; c<=$iteration; c++ )); do
9-
echo -n '#';
9+
echo -n '#'
1010
done
1111

12-
echo '';
12+
echo ''
1313
}
1414

1515

16-
printComments;
17-
echo "#### $string ####";
18-
printComments;
19-
16+
printComments
17+
echo "#### $string ####"
18+
printComments

0 commit comments

Comments
 (0)