Pages

100 Contemporary Living Room Designs

Monday, December 7, 2020

C++ program to print an lower triangle using stars.


#include<iostream.h>
#include<conio.h>
void main()
{
  int j,i,k,l;
  char c;
  clrscr();
  do
  {
     cout<<"Enter the number of stars in the base..";
     cin>>k;
     for (i=1;i<=k;i++)
     {    
         for (j=1;j<=i;j++)
            cout<<"* ";
         cout<<endl;
     }
     cout<<"\nWant to try more..(y/n)\n";
     cin>>c;
  }
  while(c=='y');
  getch();
}

3 comments:

  1. Coin Casino Review ᐈ Is It Worth Playing? [December 2021]
    The 인카지노 Coin Casino mobile is optimized for 1xbet korean use by an android or iOS device. It is available for Android and iOS devices, supports 온카지노 banking

    ReplyDelete
  2. Thanks to the nudge, I was quite struggling to come out of this phase. Hire flutter developer who can perform the activities which will be customised as per the client's need. But, say I got Eiliana.com. I found the right one to do that.
    I must suggest trying it once.

    ReplyDelete
  3. Nice Blog. Thanks for sharing with us. Such amazing information.
    Online Classes

    ReplyDelete