Source-code 4 You
For those who code.
Pages
C++
C#
Java
Projects
Softwares
About me
Monday, 25 August 2014
Possible combination of Integers
#include<iostream>
using namespace std;
int main()
{
int i,j,k;
int num;
cout<<"Please enter an integer: "<<endl;
cin>>num;
for(i=1;i<=num;i++)
for(j=1;j<=num;j++)
for(k=1;k<=num;k++)
cout<<i<<j<<k<<"\t";
cout<<endl;
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment