To print Stars in Right Angled Triangle Shape Using C Programming Langugae

How to print stars in  right angled triangle shape using C programming ?
C program Code for printing stars in right angled triangle shape ?

Program Code:

#include<stdio.h>
int main()
{
int i, j;
for(i=1;i<=10;i++)
{
for(j=0;j<i;j++)
printf("*");
printf("\n");
}
}

Output:

.exe file


No comments:

Post a Comment

Please disable your ad blocker to support this website.

Our website relies on revenue from ads to keep providing free content.