March 12, 2009

C++黑板第一個

#include <iostream>
using namespace std;

int main()
{
   int i,j,n;
   cin>>n;
   for(i=1;i<=n;i++)
   {
   for(j=1;j<=i;j++)
   cout<<"*";
   cout<<"\n";
  
   }
  
   
   
   
   
   
   
   
   
   
   
   
   
   
    system("pause");
    return 0;
}

0推薦此文章
Today's Visitors: 0 Total Visitors: 23
Personal Category: Uncategorized Articles Topic: feeling / personal / murmur
[Trackback URL]

Post A Comment









Yes No



Please input the magic number:

( Prevent the annoy garbage messages )
( What if you cannot see the numbers? )
Please input the magic number

誰來收藏
Loading ...
unlog_NVPO 0