PatternWithZeroes

Tell my Error please I tried so many but not find the correct answer

Hi @manurps33
u can refer my code https://ide.codingblocks.com/s/636861

In your code only / is there

Hi @manurps33
the whole code is saved at the link i shared…

#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<<"\t";
			}
			else{
				cout<<0<<"\t";
			}
		}
	cout<<endl;	
}
return 0;	
}

Sir i would like to say that in my code and your only difference is that \t . please tell \t is used for spacing ??

\t is used to give a tab space… thats what is expected in question

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.