Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  h.cpp
Language: C/C++
Code:
#include<iostream.h>
#include<conio.h>
void main()
{
int i,j,n;
   cout<<"how many lines:";
   cin<<n;
   for(i=0;i<n;i++)
   {
       for(j=0;j<=i;j++)
   {
       cout<<"*";
   }
   cout<<endl;
   }
  getch();
}
Comments: