Thursday, 16 March 2017

Geeksforgeeks Solution For " Print table "

GeeksforGeeks Solution For School Domain .Below You Can Find The Solution Of Basic ,Easy ,Medium ,Hard .You Can Also Direct Submit Your Solution to Geeksforgeeks Same Problem .You Need to login then you can submit you answers 

Problem :- Print the table of a given number upto 10. 

Submit Your Solution :- Click Here 


Solution :- 

#include <iostream>
using namespace std;
int main() 

{
int t;
cin>>t;
while(t--)
{
   
   int i,n;
   cin>>n;
   for(i=1;i<=10;i++)
   {
       cout<<n*i<<" ";
   }
   cout<<endl;
}

return 0;
}

Output:-

Geeksforgeeks Solution For " Print table "

No comments:
Write comments

Recommended Posts × +