Star program with C language

2 comments

#include<stdio.h>
int main()
{
int n;
printf("Enter your number :  ");
scanf("%d",&n);
printf("\n");
for(int i=0;i<n;i++)
{

for(int j=0;j<=i;j++)
{
printf("*");

}printf("\n");
}printf("\n");
}




2 comments :

  1. i wants to star program in A , B, C like *
    * *
    * * *
    * *
    * *

    ReplyDelete
  2. Please write down your output correctly in a new line.
    follow this:
    Output is:
    ***
    ***
    ***
    Because I can't understand your output

    ReplyDelete