Sunday, 26 March 2017

Hacker Rank Solution Program In C++ For " Day 5: Loops "

Problem :- Day 5: Loops

Submit Your Solution Here :- Click Here

Copy The Color Code and paste it into hackerrank Editor .

Solution :-

#include <map>
#include <set>
#include <list>
#include <cmath>
#include <ctime>
#include <deque>
#include <queue>
#include <stack>
#include <string>
#include <bitset>
#include <cstdio>
#include <limits>
#include <vector>
#include <climits>
#include <cstring>
#include <cstdlib>
#include <fstream>
#include <numeric>
#include <sstream>
#include <iostream>
#include <algorithm>
#include <unordered_map>

using namespace std;

int main(){
    int n,i;
    cin >> n;
    for(i=1;i<=10;i++)
        {
        cout<<n<<" x "<<i<<" = "<<n*i<<endl;
    }cout<<endl;
    return 0;
}

Output :-

Hacker Rank Solution Program In C++ For " Day 5: Loops "

No comments:
Write comments

Recommended Posts × +