Read your homework question:
In a loop, multiply each pair eight times, and display the results.
For that, you will need a
for
loop, and to multiply d1 by d2, then d1 by d3, d1 by d4, d2 by d3, d2 by d4, and d3 by d4 inside the loop, printing the result each time.