HackerRank Daily challenge solution-Day 5-Loops

 C++ program for HackerRank Daily Challenge Day 5- Loops Discussion.

 -Dinesh Kumar E


Code:


#include<iostream>
using namespace std;
int main()
{
    int i,j,k;
    cin>>j;
    for(i=1;i<=10;i++)
    {
        k=j*i;
        cout<<j<<" x "<<i<<" = "<<k<<endl;
    }
}

Comments

Popular Posts