sir my code runs on vs code properly but here it is showing
wrong answer in test case 1;
now what i do ?
plzzzzzz shortout this problems.
Code runs properly although showing wrong answer
hi @princekmr99058_99c9453df267fd18,
#include<iostream>
using namespace std;
int main() {
int n,i,j;
cin>>n;
for(i=1;i<=n;i++){
for(j=1;j<=i;j++){
if (j==1 || j==i){
cout<<i<<" ";
}
else{
cout<<0<<" ";
}
}
cout<<endl;
}
return 0;
}