-1
****                       *
***           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 by mike_2000_17: Fixed formatting

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by jimboy29
0

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 by mike_2000_17: Fixed formatting

0

how to do this?

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

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.