Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a3b7ebd

Browse files
fixing typos
-c : Suppress trailing newline -e : for interpreting the user given input
1 parent 49328b4 commit a3b7ebd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎casestatement.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@
66
#Modified Date:
77
#Author: Ankam Ravi Kumar
88
# START #
9-
echo -c "Enter a number: \c"
9+
echo -e "Enter a number: \c"
1010
read -r a
11-
echo -c "Enter b number: \c"
11+
echo -e "Enter b number: \c"
1212
read -r b
1313

1414
echo "1. Sum of values"
1515
echo "2. Substraction"
1616
echo "3. Multiplication"
1717
echo "4. Division"
1818
echo "5. Modulo division"
19-
echo -c "Enter Your Choice from above menu: \c"
19+
echo -e "Enter Your Choice from above menu: \c"
2020
read -r ch
2121
case $ch in
2222
1) echo "Sum of $a + $b = "`expr $a + $b`;;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /