S
sofin
Here is a routine to find all combination of 3 digits.
How to write a program where the number of digits is a variable?
int i,j,k;
for(i=0;i<10;++i)
{
for(j=0;j<10;++j)
{
for(k=0;k<10;++k)
{
// Print the digits
cout << i << j << k << endl;
}
}
}
How to write a program where the number of digits is a variable?
int i,j,k;
for(i=0;i<10;++i)
{
for(j=0;j<10;++j)
{
for(k=0;k<10;++k)
{
// Print the digits
cout << i << j << k << endl;
}
}
}