write a c++ program for it.
Attachments:
aksachan6121:
heya just use a for loop for n>=4
Answers
Answered by
2
heya here is ur answer in the attachment above hope it helps you.
Have a good day
Have a good day
Attachments:
Answered by
0
Answer:
#include<iostream.h>
#includd<conio.h>
void main ()
{
clrscr();
int j=5;
for(int i=0;i<5;i++)
{
cout<<j<<j<<j<<j<<j;
j--;
cout<<endl;
}
getch();
}
Output will be
55555
44444
33333
22222
11111
Similar questions