Wow, ok, didn't even think of for-loops.
Here is what I have:
case 'M':
case 'm':
printf("Please enter the maximum multiplier/multiplicand\n");
printf("you would like to see in the mulitplication table: \n");
scanf("%d", &table);
for(i = 0; i < 100; i = i + 1)
{
if(i == table)
{
break;
}
printf("%d", i);
}
break;
(and that works how its supposed to)
How do I make it so it
printf("%d", i);
'table' number of times on successive lines and have dashes under the first row and column? ( \n goes in there I know)
Ie.
1 2 3 4 5 6 7
------------------------------
1| 1 2 3 4 5 6 7
2| 2 4 6 8 10 12 14
3|
4|
5| etc. etc. etc.
6|
7|