Advertisement
Saleh127

Untitled

Apr 26th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. int a,b,c,d,e,i,j,k,l;
  6. cin>>a;
  7. while(a--)
  8. {
  9. cin>>b;
  10. b=b*567;
  11. b=b/9;
  12. b=b+7492;
  13. b=b*235;
  14. b=b/47;
  15. b=b-498;
  16. b=b/10;
  17. cout<<abs(b%10)<<endl;
  18. }
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement