*********
****s****
***sss***
**sssss**
*sssssss*

Where "s" means space..

Need a simple syntax coz I am a new student.
Help me fast. I am totally stucked here.........

Thanks and best regards,
Lost history:)

Edited 4 Years Ago by history: n/a

[boilerplate_help_info]

Posting requests for help must be well thought out if you want help quickly and correctly.  Your post did not meet the criteria for quality help. You may get some posts, but are they going to be useful?  Check your post with these checkpoints - what is it [i]you[/i] missed:
[list=1]
[*]Ask a question that can be answered. Do not ask
- What's wrong with my code?
- Why doesn't this work?
- Anything else that does not give us useful information.
[*]Post your code.  If we don't know what you did, how can we possibly help?
- Use [b]PROPER FORMATTING[/b] -- see this
- Use CODE Tags so your formatting is preserved.
If we can't follow your code, it's difficult to help. We don't care that you're still working on it. If you want us to read it, it must be readable
[*]Explain what the code is supposed to do.  If we don't know where the target is, how can we help you hit it?
[*]Explain what actually happened! If we don't know where the arrow went when you shot it, how can we tell what went wrong and how far from the target you are?
[*]If you have errors, post them! We can't see your screen.  We can't read your mind. You need to tell us what happened.
[*]Do [b]not[/b] ask for code. We are not a coding service. We will help you fix your code. 
    If anyone posts working code for you, they are a cheater. 
    If you use that code [i]you[/i] are a cheater.
[*]Do [b]not[/b] bore us with how new you are. We can tell by your code.
- Do not apologize. We were all new, and unless you are completely 
  brain dead you will get better.
- Do not ask us to "take it easy on you."
- Do not say "I don't know what's going on." That's obvious since
  you posted for help. Use that time wisely by [b]explaining[/b] as best 
  you can so we can help.
[*]Do not apologize for posting 'late'. We don't have any expectations on when you should be posting - 10 minutes or 10 days. We aren't timing your responses.
[*][b]Do not post your requirements and nothing else. [/b]We view that as a lazy do-nothing student that wants us to do their work for them. That's cheating and we [i]will[/i] be hard on you.
[*]Do not attach files except when absolutely necessary. Most of us are not going to download file.  Add the information to your post.
[*][b]Do not tell us how urgent it is.[/b] Seriously, for us there is no urgency at all. Many that can help will ignore any URGENT or ASAP requests.
[/list]
Think more about your next post so we don't have to play 20 questions to get the info we need to help you.

[/boilerplate_help_info]

#include<stdio.h>
#include<conio.h>
int main()
{
   int i,j,k,cnt=0;
   clrscr();

   for(i=5;i>=1;i--)
   {
	for(j=1;j<=i;j++)
	{
	  printf("*");
	}
	for(k=i;k<5;k++)
	{
	   printf("S");
	}
	for(k=i+1;k<5;k++)
	{
	  printf("S");
	}
	if(cnt<2)
	{
	for(j=1;j<=4;j++)
	{
		printf("*");
	}
	cnt++;
	}
	else
	{
		for(j=1;j<=i;j++)
		{
			printf("*");
		}
	}
		printf("\n");
   }


   getch();
   return 0;
}

Edited 4 Years Ago by Narue: Added code tags

#include<stdio.h>
#include<conio.h>
int main()
{
   int i,j,k,cnt=0;
   clrscr();

   for(i=5;i>=1;i--)
   {
    for(j=1;j<=i;j++)
    {
      printf("*");
    }
    for(k=i;k<5;k++)
    {
       printf("S");
    }
    for(k=i+1;k<5;k++)
    {
      printf("S");
    }
    if(cnt<2)
    {
    for(j=1;j<=4;j++)
    {
        printf("*");
    }
    cnt++;
    }
    else
    {
        for(j=1;j<=i;j++)
        {
            printf("*");
        }
    }
        printf("\n");
   }


   getch();
   return 0;
}

Did you read WaitP's post above you? It applies to your post as well :yawn:

Edited 3 Years Ago by pyTony: fixed formatting

@ganeshchincholk

Thanks for your help. Your post is awsome:)
I do not know where is thanks button in Dani's forum, That's why I am giving you thanks here.

+100 points from me for your post......

Thanks and best regards from me.

@zeroliken:

Did you read WaitP's post above you? It applies to your post as well :yawn:

And you better to help someone instead of explaining rules...
No regards for you.

Edited 3 Years Ago by pyTony: fixed formatting

Did you read WaitP's post above you? It applies to your post as well :yawn:

And you better to help someone instead of explaining rules...

No regards for you.

history & ganeshchincholk, I'm glad you two could cheat off each other. This thread is exactly why we have those rules which you both violated. Kudos.

@history better mind your manners and start cracking on that code as we have here one rule for lay people

Do provide evidence of having done some work yourself if posting questions from school or work assignments

Otherwise nobody will help. We are NOT 24/7 coding forum for lazy people

This article has been dead for over six months. Start a new discussion instead.