Im having trouble writing a multiplication table for C.
I have actually wrote the programme, without any user interface, however i want user interface, i want the user to be able to choose what multiplication they see.
e.g. if the put in 5 & 6 in then they will see the following:
1 2 3 4 5 6
2 4 6 8 10 12
3 6 9 12 15 18
4 8 12 16 20 24
5 10 15 20 25 30
here is the code that i have so far :
and the output i get with that is a standard 12x12 table without any user interface.Code:{ int number1; int number2; int result; for (number1 = 1 ; number1 <= 12 ; number1++) { for (number2 = 1 ; number2 <= 12 ; number2++) { result = number1 * number2; printf ("%4d ",result); } printf("\n"); } }