Generation

generate functionWed, 24 May 2023

Elaborar lo siguiente :1 + 2/1 - 3/2 + 4/3 - 5/4 + . . . - n/m

function math(n, m): for i in range(n): for j in range(m): if (i-j)%2 == 0: print(i+j) else: print(i-j)

Want to kickstart your project?Use the new AI Studio to create your code