Score:0

I've implemented a code that will check if the user input value is single digit or double or triple or more than that

sh flag

code

Output

I'm having problem with the output. Please let me know where am I wrong.

hr flag
See [Why are bash tests so picky about whitespace?](https://unix.stackexchange.com/questions/117438/why-are-bash-tests-so-picky-about-whitespace). You may find [www.shellcheck.net](https://www.shellcheck.net) useful as well.
terdon avatar
cn flag
Welcome to Ask Ubuntu! Please [don't post images of text](https://meta.askubuntu.com/q/8713/85695). Instead, copy/paste the text into your question and use the [formatting tools](https://askubuntu.com/help/formatting) to format it as code.
Score:1
ng flag

Just missing some ['s. Try something like:

#!/bin/bash
read -r num
if [[ "$num" -lt 10 ]]; then
    echo "Single"
elif [[ "$num" -lt 100 ]]; then
    echo "Double"
else
    echo "More"
fi
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.