Sorry for the new questions... I've created this program to display a table . How could I write this code using while statements instead of for?
#include <iostream>
using namespace std;
int main()
{
for (int x = 1; x < 4; x++ )
{
cout << x << " ";
for (int y = 0; y < 10; y++)
{
cout << x* y << " ";
} //end for
cout << endl;
} //end for
cout << endl;
system ("pause");
return 0;
} //end of main function