Pages

Tuesday 25 October 2011

Star triangle



Salam and Hi!This is my programme regarding to the star triangle :


# include <stdio.h>
#include <stdlib.h>

int main ( void )
{
       int row=0;
       int size = 5;
       while(row<size)
       {
             int star=0;
             while(star<row)
             {
                    printf("*");
                    star++;
             }
             printf("\n");
             row++;
       }
       system("PAUSE");
       return 0;
}
 - shoutul humaira-2144-

No comments:

Post a Comment