summaryrefslogtreecommitdiff
path: root/I_anno/Programmazione_2/exercises/ripetute.cc
blob: 23d151a2ea33331069dfc538a72ea0c6613d2db7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include<iostream>
#include<string>
#include<fstream>

using namespace std;

int main() {
    ifstream in("input.txt");
    ofstream out("output.txt");

    for(int ts = 0; ts < 100; ++ts) {
        string s;
        in >> s;
        out << s+s << '\n';
    }

    in.close();
    out.close();
    return 0;
}