C++ Program :-
The output of this program will be as following.....
54321
5432
543
54
5
Note:-
you can make any changes in the output according to your output requirements by simply changing the values in the loop.
#include<iostream.h>
#include<conio.h>
void main(void)
{
clrscr();
int num1,num2;
for(num1=1;num1<=5;num1++)
{
for(num2=5;num2>=num1;num2--)
{
cout<<num2;
}
cout<<endl;
}
getch();
}
OUTPUT :-
54321
5432
543
54
5
Note:-
you can make any changes in the output according to your output requirements by simply changing the values in the loop.
Aaahaa .. Yeh PrOgram tO aTa hai MuJhe .. ;)
ReplyDeleteyar assignment vale be assignment submission karne ka bad upload kar dun ga
ReplyDelete