Dude I haven't fixed up your code, but I've cleaned it from unused variables, and some minor mistakes, I would suggest you see how it is looking now and try to fix it up, or at least post the order of the exercise you are trying to do.
Duh, forgot to post the code....
Code:
#include<stdio.h>
void trhueco (int);
int main ()
{
int menu,a;
printf ("\nchoose");
printf ("\n Empty triangle");
scanf ("%d", &menu);
switch (menu)
{
case 1:
printf ("put the number of lines");
scanf ("%d", &a);
trhueco (a);
break;
}
return 0;
}
void
trhueco (int reng)
{
int colu, c, d;
d = reng;
for (c = 1; c <= d; c++)
{
for (colu = 1; colu <= c; colu++)
{
if (colu != 1 && colu != c)
printf (" ");
else
printf ("*");
}
}
}