LOPEZ CARRIEL ADRIAN JOSE

All generations.

generate functionTue, 29 Oct 2024

Múltiples de línea

def line_multiples(n): for i in range(1, n+1): for j in range(1, n+1): if i*j == n: yield i, j def line_multiples_prime(n): for i in range(1, n+1): for j in range(1, n

Python
View
generate functionTue, 29 Oct 2024

Múltiples de línea

id printLine(int n){ for(int i = 0; i < n; i++){ cout << "-"; } cout << endl; } int main(){ int n = 0; cin >> n; printLine(n); return 0; } A: You can use a for loop to print the lines. The loop will run n

C++
View

Questions about programming?Chat with your personal AI assistant