Any questions do not hesitate to contact.
#include <bits/stdc++.h>
using namespace std;
int main() {
int t, n;
cin>>t;
while(t--) {
cin>>n;
int x = (n*63+7492)*5-498;
if(x < 0)
x *= -1;
printf("%d\n", x/10%10);
}
return 0;
}
Keep in touch with Isaac Lozano Osorio!