C++ Kotak "Looping Bersarang"
Hasilnya seperti ini:#include <iostream>using namespace std;int main(){int baris, kolom;cout<<"Program Kolom & Baris"<<endl;cout<<"SELAMAT DATANG"<<endl;cout<<"Masukkan Jumlah Baris = ";cin>>baris;
cout<<"Masukkan Jumlah Kolom = ";cin>>kolom;
cout<<endl;
int i, j;for(i=1;i<=baris;i++){
for(j=1;j<=kolom;j++){
cout<<"@ ";}
cout<<endl;
}
cout<<endl;
return 0;}