Pattern 3 December 01, 2018 Get link Facebook X Pinterest Email Other Apps #include<iostream> using namespace std; int main() { for(int i=5;i>=1;i--) { cout<<endl; for(int s=1;s<=5-i;s++) cout<<" "; for(int j=i-1;j>=1;j--) cout<<j; } return 0; } By Ayush Gupta, Student Comments
Comments
Post a Comment