Star Pattern-3


*****
  ****
    ***
      **
        *


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#include <stdio.h>
int main()
{
int r,c;
for(r=5;r>=1;r--)
 {
 for(c=1;c<=r;c++)
 {
 printf("*");
 }
 printf("\n");
 }
}

Download Options:

       




Comments