I have been working on way to make a triangle for a word, but all that i get is 
an infinite loop
  #include<stdio.h>
  int main()
  {
  int tr=5, r, c, s, o=1;
  for(c=1; c<=tr; r++)
  {
  for(c=1;c<=tr- c;c++)
  {
  printf(" ");
  }
  for(c=1;c<=o; s++)
  printf("c");
  printf("\n") ;
  o=o++;
  }

Robert Ryan <[EMAIL PROTECTED]> wrote:
          how would you enter words into a pyramid: like a 3-letter word: ATE
T 
A E


rose rise <[EMAIL PROTECTED]> wrote:
I this is the apropriate program for making a Pyramid of stars :)

__________________________________________________________
#include<conio.h>
#include<stdio.h>
void main()
{
int tr=10,r,c,s,o=1;
clrscr();
for(r=1;r<=tr;r++)
{
for(c=1;c<=tr-r;c++)
{
printf(" ");
}
for(s=1;s<=o;s++)
printf("*");
printf("\n");
o=o+2;
}
getch();
}

---------------------------------
Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.

[Non-text portions of this message have been removed]

---------------------------------
Be a better sports nut! Let your teams follow you with Yahoo Mobile. Try it now.

[Non-text portions of this message have been removed]



                         

       
---------------------------------
Be a better pen pal. Text or chat with friends inside Yahoo! Mail. See how.

[Non-text portions of this message have been removed]

Reply via email to