Code on C Programming for specific output

Asked By 140 points N/A Posted on -
qa-featured

Hi,

Please help me with my assignment. My assignment is to develop a program that will produce the output as:
 
*******
 
*****
 
***
 
*
SHARE
Best Answer by MarkJason
Answered By 150 points N/A #88418

Code on C Programming for specific output

qa-featured

Hi Devia,

I am searching for the same solution. Please, any one can help us.

Answered By 0 points N/A #88419

Code on C Programming for specific output

qa-featured

I don’t have a C compiler at this time. Visit the idea solution of the other question posted by Dania. This is the same solution with minor change. Let me know if you have any problem.

 

Answered By 0 points N/A #88420

Code on C Programming for specific output

qa-featured

 

Ideal solution is like:
 
Int i, j;
 
For(i=1;i<=5;i++)
 
{
 
for(j=I; j<=5; j++)
 
{ cout<<”*”;}
 
endl
 
}
Answered By 140 points N/A #88421

Code on C Programming for specific output

qa-featured

Waiting for the solution, help please.

 

Best Answer
Best Answer
Answered By 0 points N/A #88422

Code on C Programming for specific output

qa-featured

 

The actual running program for this problem is as follows; I hope it will help you a lot:
 
Getch(): we can use this in all our C programs because it is a command that is used to show the output screen until you press any character. When you press any character at the end, then the screen will disappear. Until then, you can view the output on your screen.
 
Pause() command is also used for the same reason.
 
The Code is:
 
#include<iostream.h>
 
#include<conio.h>
 
 Void Main()
 
{
 
int i,j;
 
Clrscr();
 
For(i=7;i>=1;i=i-2)
 
{
 
for(j=i; j>=1; j–)
 
{ cout<<”*”;}
 
 cout<<endl;
 
}
 
getch();
 
}
Answered By 0 points N/A #88423

Code on C Programming for specific output

qa-featured

MarkJason,

Brilliant and complete working! I appreciate your work and interest.
 
Thanks a lot.
Answered By 140 points N/A #88424

Code on C Programming for specific output

qa-featured

MarkJason,

Thanks a lot dear for your interest and especially for your time; it helps me and other new programmers of C. Be there for me,please. Stay happy and blessed.

Related Questions