Friday, 15 June 2012
Program To Print A Reverse Star In C++
#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
main()
{
clrscr();
int i,j,
space=4
;
for(i=5;i>=1;i--)
{
for(j=1;j<=i;j++)
{
cout<<
setw(3)<<"*";
}
cout<<"\n";
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment