100% prog pattern generation (traingle with stars)

#include<stdio.h>
void main( )
{
  int i,j,n;
  printf("\n enter number of lines in which pattern is required:");
  scanf("%d",&n);
   for(i=1;i<=n;i++)
   {
     for(j=i;j<n;j++)
       printf(" ");//one space between quotes
     for(j=1;j<=2*i-1;j++)
       printf("*");
     printf("\n");
   }
  }

 తెర మీద 
n=5 ఇస్తే 

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




కామెంట్‌లు

ఈ బ్లాగ్ నుండి ప్రసిద్ధ పోస్ట్‌లు

Assignment to gain eligibility to industry visit

Useful books in telugu

త్వరలో తగిన ఉద్యోగం వస్తుంది.. చేసే ప్రయత్నం బట్టి..