Showing posts with label Pattern. Show all posts
Showing posts with label Pattern. Show all posts

Friday, December 7, 2018

Draw the pattern.

Program code (in c++) #include<iostream> using namespace std; int main() {     int a[10]={0,1,2,3,4,5,6,7,8,9};     for(int i=1;i<=5;i++)     {         for(int p=1;p<=5-i;p++)         {             cout<<" ";         }  ...