"conditional statements hackerrank solution in c++" Code Answer's

You're definitely familiar with the best coding language TypeScript that developers use to develop their projects and they get all their queries like "conditional statements hackerrank solution in c++" answered properly. Developers are finding an appropriate answer about conditional statements hackerrank solution in c++ related to the TypeScript coding language. By visiting this online portal developers get answers concerning TypeScript codes question like conditional statements hackerrank solution in c++. Enter your desired code related query in the search bar and get every piece of information about TypeScript code related question on conditional statements hackerrank solution in c++. 

conditional statements hackerrank solution in c++

By JinkitJinkit on Aug 17, 2020
#include <bits/stdc++.h>

using namespace std;



int main()
{
    int n;
    cin >> n;
    cin.ignore(numeric_limits<streamsize>::max(), '\n');

    // Write Your Code Here
    if(1<=n && n<=9){
        if(n==1){
            cout<<"one"<<endl;
        } 
        else if(n==2){
            cout<<"two"<<endl;
        }
        else if(n==3){
            cout<<"three"<<endl;
        }
        else if(n==4){
            cout<<"four"<<endl;
        }
        else if(n==5){
            cout<<"five"<<endl;
        }
        else if(n==6){
            cout<<"six"<<endl;
        }
        else if(n==7){
            cout<<"seven"<<endl;
        }
        else if(n==8){
            cout<<"eight"<<endl;
        }
        else if(n==9){
            cout<<"nine"<<endl;
        }
    }
    else{
        cout<<"Greater than 9"<<endl;
    }

    return 0;
}

Add Comment

0

All those coders who are working on the TypeScript based application and are stuck on conditional statements hackerrank solution in c++ can get a collection of related answers to their query. Programmers need to enter their query on conditional statements hackerrank solution in c++ related to TypeScript code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about conditional statements hackerrank solution in c++ for the programmers working on TypeScript code while coding their module. Coders are also allowed to rectify already present answers of conditional statements hackerrank solution in c++ while working on the TypeScript language code. Developers can add up suggestions if they deem fit any other answer relating to "conditional statements hackerrank solution in c++". Visit this developer's friendly online web community, CodeProZone, and get your queries like conditional statements hackerrank solution in c++ resolved professionally and stay updated to the latest TypeScript updates. 

TypeScript answers related to "conditional statements hackerrank solution in c++"

View All TypeScript queries

TypeScript queries related to "conditional statements hackerrank solution in c++"

Browse Other Code Languages

CodeProZone