how to programmatically create a star?

i am having difficulty to run the program creating star, actually 1-4th of a star.if anyone could find out the error in codes, i would be grateful. my code is:

#include<stdio.h>
#include<conio.h>
int main()
{
	int a,b,c,n;
	scanf ("%d",&n);
	for(a=0;a<=n;a++)
	{ for (b=n;b<=0;b++) printf (" ");
	  for (b=0;b<=n;b++) printf ("*");
	}
}

The <conio.h> may be creating compilation error in your code.

PS: It is better to have problem statement.

Problem statement is not clear . :expressionless:

please provide us a link toward the problem statement.

1 Like