+ 2
Write a program to print the sequence
1**** *2*** **3** ***4* ****5
2 Respuestas
+ 3
#include <iostream>
using namespace std;
int main() {
for(int i = 1; i < 6; i++){
for(int j = 1; j < 6; j++){
if(i==j)
cout<<i;
else
cout<<"*";
}
cout<<"\n";
}
return 0;
}