Shell Scripting
Asked by
zelenytsya
Hi. I have a shell script with the following lines:
#!/bin/sh
echo "I will work out X*Y"
echo "Enter X"
read X
echo "Enter Y"
read Y
echo "X*Y = $X*$Y = $[X*Y]"
and result:
petro-z@
I will work out X*Y
Enter X
2
Enter Y
3
X*Y = 2*3 = $[X*Y]
where 6? or how receive 6?
Question information
- Language:
- Russian Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Ilya Voronin
- Solved:
- Last query:
- Last reply:
To post a message you must log in.