#include <iostream>
#include <cstdlib>
#include <time.h>
#include <iomanip>
#define VECES 20000
using namespace std;
int main()
{
int dado1, dado2, valor[13];
srand(time(NULL));
for(int j=2; j<13; j++){
valor[j]=0;
}
for(int j=0; j<VECES; j++){
dado1 = 1+rand()%6;
dado2 = 1+rand()%6;
valor[dado1+dado2] += 1;
}
for (int j=2; j<13; j++){
cout<<setw(3)<<j<<" saliΓ³:";
cout<<setw(9)<<valor[j]<<" veces."<<endl;
}
return 0;
}