i want to create a program that generates a multiplication table and the user can set his own peramiters
my problem is this
1 2 3 4 5 6 7
int i;
for (i = 1; i < Number; ++i)
{
cout << " " << Output[i];
}
for this code i wold like to use an array so that i can use the numbers to generate the rest of the map
i want to know how to make it so that the numbers in the array arnt all diffrent numbers without having to set all of them each indvidualy myself like this
double array[] = {1, 2, 3, 4, 5, 6, 7............}
i would like to know if it is better to use an array and set the nubers individual or should i get rid of the array all together and and if so what would be a better way to do it
#include <iostream>
usingnamespace std;
int main()
{
double Number;
double Output[200];
cout << " Pick the number your times table will go up to " << endl;
cout << " it cant be greater then 200" << endl;
cin >> Number;
if ( Number > 200 )
{
cout << " That number is to high ";
main();
}
int i;
for (i = 1; i < Number; ++i)
{
Output[i] = Output[i-1] + 1; // new code
cout << " " << Output[i];
}
system("pause");
return 0;
}