****                       *
***           and         **
**                       ***
*                       ****

well my teacher wont say a thing and have passed this act.
now our teacher is a different one and i can't still figure it out..
help pls??...

:S

the only loop i know is this

*
**
***
****
===============================================
#include<stdio.h>
main()
{
int x,y,size;
clrscr();
{
printf("Input Size:");
scanf("%i",&size);
for(x=0;x!=size;x++,printf("\n"))
for(y=0;y!<=x;y++)
printf("%c",1);
}
getch();
}
===============================================

start quote:

****                       *
***        and         **
**                       ***
*                       ****

well my teacher wont say a thing and have passed this act.
now our teacher is a different one and i can't still figure it out..
help pls??...

:S

the only loop i know is this

*
**
***
****
===============================================
#include<stdio.h>
main()
{
int x,y,size;
clrscr();
{
printf("Input Size:");
scanf("%i",&size);
for(x=0;x!=size;x++,printf("\n"))
for(y=0;y!<=x;y++)
printf("%c",1);
}
getch();
}
===============================================

end quote.

You just don't get it sunshine.

You ask for help without any real effort. You have chosen to ignore previous advice about the use of code tags and sensible thread titles.

You've made your bed ... you sleep in it!

Good luck - you're going to need it.

how to do this?

write a program that will compute the sum of 1-50?.. (using loop).. tmx