Monday, July 12, 2010

A program to print the series

This program is to print the following series:

54321
5432
543
54
5 

#include
#include
void main()
{
int a,b;
clrscr();
for (a=1;a<=5;a++)
{
for (b=5;b>=a;b--)
{
cout<
}
cout<<"\n";
}
getch();
}

No comments:

Post a Comment