Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- int main()
- {
- int t,n,i, result;
- scanf("%d", &t);
- for(i=1; i<=t; i++)
- {
- scanf("%d", &n);
- result= ((((((n*567)/9)+7492)*235)/47)-498);
- printf("%d\n", abs(result/10)%10);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement