Ayuda con el código
Publicado por Sebastian (2 intervenciones) el 24/03/2021 13:08:40
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <iostream>
#include <string.h>
#define M 50
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
char cadena[M];
int n;
cout<<"Ingrese una frase: ";
cin>>cadena;
cout<<"Ingrese el numero de veces: ";
cin>>n;
cout<<endl;
for(int i=0; i<n; i++)
{
cout<<"\t"<<cadena<<endl;
}
return 0;
}
hola tal vez me podrían guiar para poder imprimir de esta manera:
Valora esta pregunta
0