Block
❔ Trying to figure out how to write a simple script
I'm fairly new to c# and I'm trying to figure out how to write this question in a for loop.
it goes
-6. Define a method named DisplayMultiplicationTable that takes an integer parameter.
a. The method loops through all the values between 1 and 12 (inclusive) and display the multiplication with the parameter value in a statement like this 5 x 3 = 15.
b. Call the method in the Start() with a value of 3. The output should look like this:
3 x 1 = 3
3 x 2 = 6
3 x 3 = 9
3 x 4 = 12
etc.
Help would be very much appreciated!!!
21 replies