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

Recommended Answers

All 4 Replies

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.

haiX! okay sunshine!

ahehehe!


thanx for the gudluck!

commented: You're an idiot! +0

haiX! okay sunshine!

ahehehe!


thanx for the gudluck!

how to do this?

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.