#include
using namespace std;
int main() {
int n;
cin>>n;
if(n>0 && n<100) {
for(int i=1;i<=n;i++) {
for(int j=1;j<=i;j++) {
if(j==1 || j==i) {
cout<<i<<" “;
}
else {
cout<<‘0’<<” ";
}
}
cout<<endl;
}
}
return 0;
}
The code gets compiled on another compiler but not here
@Abhishek4799 it is working fine with me on hackerblocks too,try hard refreshing the page and submit it again.