+ 1
Print the pattern
1 3 5 5 7 9 7 9 1 3 9 1 3 5 7
2 Antworten
+ 8
This is what you want-
https://code.sololearn.com/c6NPPayrS2c9/?ref=app
+ 3
k=1;
for(i=1;i<=5;i++)
{
for(j=1;j<=i; j++)
{
if(k>9)
k=1;
cout<<k<<" ";
k+=2;
}
cout<<endl;
}