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 →

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