" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
using namespace std;
int main(){
int angka=0;
int n;
cout<<"Masukan N : ";cin>>n;
for(int i=1;i<=n;i++){
for(int ii=1;ii<=i;ii++){
angka++;
cout<<angka<<" ";
}
cout<<endl;
}
}