Asked By
Devia
140 points
N/A
Posted on - 04/26/2011
Hi,
Please help me with my assignment. My assignment is to develop a program that will produce the output as:
*******
*****
***
*
Answered By
Roshaan
150 points
N/A
#88418
Code on C Programming for specific output
Hi Devia,
I am searching for the same solution. Please, any one can help us.
Answered By
Sahil
0 points
N/A
#88419
Code on C Programming for specific output
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
RajaG
140 points
N/A
#88421
Code on C Programming for specific output
Waiting for the solution, help please.
Code on C Programming for specific output
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
Sahil
0 points
N/A
#88423
Code on C Programming for specific output
MarkJason,
Brilliant and complete working! I appreciate your work and interest.
Thanks a lot.
Answered By
Devia
140 points
N/A
#88424
Code on C Programming for specific output
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.