****                       *
***           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();
}
===============================================

Edited 3 Years Ago by mike_2000_17: Fixed formatting

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.

Edited 3 Years Ago by mike_2000_17: Fixed formatting

how to do this?

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

This article has been dead for over six months. Start a new discussion instead.