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 →

  • jonatanivanhoe
    2 months ago+ 0 comments
    #!/bin/bash
    read x; 
    read y;
    soma=`expr $x + $y`;
    echo $soma;
    diferenca=`expr $x - $y`;
    echo $diferenca;
    produto=`expr $x \* $y`;
    echo $produto;
    divisao=`expr $x / $y`;
    echo $divisao;
    
    0|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy