At Thursday 3/27/2008 10:18 AM, you wrote:
>here is a code for making a triangle. can anyone change this to make a circle
>#include<stdio.h>
>  int main()
>  {
>int tr=10,r,c,s, o=1;
>
>for(r=1; r<=tr; r++)
>{
>for(c=1;c<=tr- r;c++)
>  {
>  printf(" ");
>  }
>  for(s=1;s<=o; s++)
>  printf("c");
>  printf("\n") ;
>  o=o+2;
>  }
>return 0;
>}

We already helped you change this to make a square.

Give this a bit of thought. You need to determine where you want to 
place the "points" on the page in order to show a circle. Draw it out 
on graph paper and it should help you create the code.

~Rick



>
>---------------------------------
>Never miss a thing.   Make Yahoo your homepage.
>
>[Non-text portions of this message have been removed]
>
>
>------------------------------------
>
>To unsubscribe, send a blank message to 
><mailto:[EMAIL PROTECTED]>.Yahoo! Groups Links
>
>
>

Reply via email to