top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Can any one Explain with a c program to printing tower in c and returning remaing stars ? [CLOSED]

+2 votes
790 views
Can any one Explain with a c program to printing tower in c and returning remaing stars ? [CLOSED]
closed with the note: I will ask anotherway..
posted Dec 30, 2013 by Giri Prasad

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
Could not understand the problem, printing tower in C use printf("tower"); but I have not understood what you want to ask.
Hi...Program for tower of hanoi and for example in first row it will print 3 satrs,nxt row it wil print stars and we hve to display the remaining stars also.
Can you update the question and provide crisp and clear information. I am still not able to understand the problem.

Similar Questions
+3 votes

Please help me to print all permutations of a string in C?

+1 vote

How to create a c program to print a alphabet in the form of stars for ex.
A should be printed something like

   *
  * *
 *****
*     *

Do we have any standard algo???

+5 votes
#include<stdio.h>
#include<string.h>
main()
{
    char p[100];
    int i,len;
    printf("Enter a string\n");
    scanf("%[^\n]",p);
    len=strlen(p);
    for(i=0;i<len-1;i++)
    {
        if(a[i]==a[i+1])
              p[i]=p[i+1];
    }
    printf("String :  %s\n",p);
}
+4 votes
                                      *
                                     * *
                                    * * *
                                   * * * *
                                  * * * * * 
                                 * * * *     

I above Ouput I Missed two stars.My question is how to find out the remaining stars.Please tel me in the C programming way.

...