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

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