Pages

💡 Now You Can Get your Assignments Sollution here... .💡 100% plagiarism Free Service...💡 Responsibility, punctuality and on-time delivery... 💡 Furnishing you with experts... 💡 experienced in your subject 100% privacy... 💡 helping you with the highest efficiency , professionalism Affordable and budget-friendly costs that do not make a hole in your wallet

C++ Code for Pattren

#include<iostream>
using namespace std;
void main()
{
int c=0;
for(int i=1;i<=5;i++)
{
for(int j=1;j<=5;j++)
{
if(j<=c)
cout<<" ";
if(j>c)
cout<<j;
}
cout<<endl;
c++;
}
}

1 2 3 4 5
   2 3 4 5
      3 4 5
         4 5
            5

No comments: