Simple Star Pattern (right angle triangle)

 // *

// **
// ***
// ****

#include<stdio.h>
int main()
{ int b,a,c;
printf("Enter the Number Till you get the star pattern");
scanf("%d",&a);
for ( b = 0; b < a; b++)

{
    for ( c = 0; c < b+1; c++)
    {
        printf("* ");
    }
    printf("\n");
}
return 0;
}

Comments

Popular posts from this blog

Maths Unit 1 ( Theory )

Intelligence System notes part 2

code for find the determinant of 3x3 matrix