Pages

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();
}

4 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
  4. This is a very informative and useful blog. I really enjoyed reading the content because it is simple, clear, and easy to understand. The information shared in this article is helpful for readers who want to learn more about the topic. I especially liked how the points were explained with practical details and useful suggestions. Such well-written blogs make it easier to discover new ideas and gain valuable knowledge. Thank you for sharing this helpful information. I look forward to reading more interesting and informative articles like this in the future. Keep up the great work and continue sharing valuable content.
    Best Fashion Designing institute in Delhi NCR
    Best Makeup Training Institute in Delhi NCR.
    best computer institute in delhi NCR
    Typing & Shorthand Institute in Delhi NCR

    ReplyDelete