Sunday, 1 May 2016

C++ Program of Starric using for loop

CODE

#include<iostream.h>

#include<conio.h>

void main()

{

   clrscr();

   for(int i=1; i<=5; i++)

   {

      for(int j=1; j<=i; j++)

      {

cout<<"*";

      }

cout<<endl<<endl;

  }

   getch();

}

Share:

0 comments:

Post a Comment