#include <iostream>
#include <string.h>
#include <stdlib.h>
using namespace std;
int main()
{
int sec=2, suma=0, resto=0;
char RUT[12];
cout<<"Inserte su RUT sin digito verificador: ";
cin.getline(RUT, 12, '\n');
for (int i=strlen(RUT); i>=0; i--)
{
if (isdigit(RUT[i]))
{
suma = suma + (RUT[i] - 48) * sec;
if (sec==7)
{
sec=2;
}
else
{
sec++;
}
}
}
resto = suma % 11;
cout<<"Digito verificador: "<< 11 - resto<<endl;
system ("pause");
return 0;
}
Yukon Gold Casino and Bonus | Canada 2021 - Casino Ow
ResponderBorrarFirst deposit 우리카지노 is a 100% match of your initial deposit plus 카지노사이트 up to a C$500 bonus on your first deposit plus up to a $500 match bonus on your first