Computer Science, asked by akash9661380972, 1 year ago

write a c++ program for it.

Attachments:

aksachan6121: heya just use a for loop for n>=4
aksachan6121: cout << n+1 ;

Answers

Answered by JAYACHAUDHARY1
2
heya here is ur answer in the attachment above hope it helps you.
Have a good day
Attachments:

akash9661380972: thank's for that
JAYACHAUDHARY1: pleasure dear
JAYACHAUDHARY1: anytime
Answered by Soñador
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