: : : How would I program a Times Table using looping in C?
: : :
: :
: : what operating system and compiler? do you just want to display it on the screen or save it into a file? How big a times table (such as from 1 to ???) ?
: :
: :
: :im using linux and vi. i want to save the file and i want to be able for it to ask the dimensions. so it will say give number for m: 5. then give number for n: 7. and it will display a timestable for the dimensions that i give it.
:
start with a very very simple program
#include <stdio.h>
int main()
{
// put your code here
return 0;
}
with that, you can start to add code that will display the prompts and get keyboard input for the dimensions. (hint: use printf() to display text) when that is working correctly, then you can code the part that makes the multiplications. Once all that is done and working, you can spend your efforts on writing the table to a file.