Create and print a 2D Times Tables with variables Rows, Cols with Exponent
For instance you could create a 3x4 times table with exponent 1 like so:
A 5x6 times table with exponent 3 would look like this:
times_tables
public static <type goes here> ttexp()
that takes in 3 int parameters rows_, cols_, exp_
nested for loops
to do this.times_tables
.
rows, cols, exp
and assign some initial values.tt
of type long
. Do not initialize it here!setup()
call the static method ttexp()
in class TTE
and assign the returned value to tt
.print_ttexp()
. Inside this function, use two enhanced nested for loops
to print the resulting times tables as shown above.times_tables.pde
and TTE.java
to your forked repository ttexp
on Github & Commit.Grades will be assigned for 2 categories equally weighted: