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. Grep Sed Awk
  4. 'Awk' - 2
  5. Discussions

'Awk' - 2

Problem
Submissions
Leaderboard
Discussions

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

  • ferejli_intiqam
    5 months ago+ 0 comments
    awk '{
        if ( $2>=50 && $3>=50 && $4>=50 ) status="Pass";
        else status="Fail";
        
        print $1,":",status;
    }'
    
    0|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy