We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
  • HackerRank Home

    HackerRank

  • |
  • Prepare
  • Certify
  • Compete
  • Hiring developers?
  1. Prepare
  2. Linux Shell
  3. Bash
  4. The World of Numbers
  5. Discussions

The World of Numbers

Problem
Submissions
Leaderboard
Discussions
Editorial
Tutorial

    You are viewing a single comment's thread. Return to all comments →

  • twist093
    3 months ago+ 1 comment

    Does anybody know why this version of code fails with error in this console...

    x=10
    y=11
    
    echo `expr "$x" "/" "$y"`
    expr "$x" "/" "$y"
    

    while this one works like a charm?

    x=10
    y=11
    
    expr "$x" "/" "$y"
    echo `expr "$x" "/" "$y"`
    
    0|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy