hi,I have some trouble with multiplication table and I have to write it with if without using for or while loop.two inputs are required int i=2,j=3;
output will be like this:
1*2=2
2*2=4
3*2=6
thank you..
hi,I have some trouble with multiplication table and I have to write it with if without using for or while loop.two inputs are required int i=2,j=3;
output will be like this:
1*2=2
2*2=4
3*2=6
thank you..
Recursion?
Using goto?
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
the only restriction in using loops
That sort of eliminates the "goto" solution, and leaves recursion, I would think.
As long as your numbers on either side aren't going to be huge there should be no problem with solving this using recursion.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.