SelinD

ex89pg63

Apr 9th, 2019
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. #include<iomanip>
  2. #include<cmath>
  3. #include<iostream>
  4. using namespace std;
  5. int main()
  6. { int a;
  7. cin>>a;
  8. a=a%10;
  9. cout<<(a*a*a)%10;
  10. }
Add Comment
Please, Sign In to add comment