You are on page 1of 1

main()

{int h,w, x, y;
clrscr();

printf("Enter Height:");
scanf("%d", &h);

printf("Enter Width:");
scanf("%d", &w);

for(x=1;x<=h;x++)
{
printf("\n");

for(y=1;y<=w;y++)
{
printf("*");
}
}
getch();

You might also like