Voglio creare una forma simile a questo:Creare una forma in C++
ccccccc
cccccc
ccccc
cccc
ccc
cc
c
Il mio codice è:
#include <iostream>
using namespace std;
int main(){
int i, j;
for(i = 0; i < 7; i++){
for(j = 7; j > 7; j--){
cout << 'c';
}
cout << endl;
}
return 0;
}
Ma nel terminale di uscita che ottengo è alcune righe vuote.
Cosa sto sbagliando?
Dove sono questi presunti righe vuote? Puoi fornirci il tuo output corrente? – mstbaum
[Ecco uno screenshot] (https://www.anony.ws/image/DpCK) – Sakir