#include "stdafx.h"
#include <iostream>
#include <string>
#include <conio.h>
using namespace std;
void main()
{
string cuvant;
int n;
cout << "Introduceti cuvantul:";
cin >> cuvant;
cout << "Introduceti n:";
cin >> n;
for (int i = 0; i < n; i++) {
cout << cuvant << " ";
}
_getch();
}
Daca nu intelegi codul, te rog intreaba-ma :).