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. C++
  3. Introduction
  4. Conditional Statements
  5. Discussions

Conditional Statements

Problem
Submissions
Leaderboard
Discussions
Editorial

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

  • munna10359
    2 months ago+ 1 comment

    string arr[9] = {"one", "two", "three", "four","five", "six", "seven", "eight", "nine"}; if(n > 9) cout << "Greater than 9" << endl; else cout << arr[n-1] << endl;

    1|
    Permalink
  • Blog
  • Scoring
  • Environment
  • FAQ
  • About Us
  • Support
  • Careers
  • Terms Of Service
  • Privacy Policy