Generation

generate functionWed, 18 Jan 2023

Алгоритм шифрования штатной сигнализации kia optima

int main() { int digit[10] = {1,2,3,4,5,6,7,8,9,0}; int i = 0; int result = 0; int k = 0; int key[5]; int code[10]; while(i != 5) { key[i] = digit[rand()%10]; i++; } i = 0; while(i != 10) { code[i] = digit[rand()%10]; i++; } for(i = 0; i <=4; i++) { if(code[i] < 5) { result = key[i] + code[i] + 10; code[i] = result - 10; } else { result = key[i] + code[i]; code[i] = result - 5; } } for(i = 0; i <=4;

Questions about programming?Chat with your personal AI assistant