Skip to content

Instantly share code, notes, and snippets.

@Thiago4532
Created May 1, 2019 17:31
Show Gist options
  • Save Thiago4532/f1caf38422cc7df19b9b6a5e3e7d2d31 to your computer and use it in GitHub Desktop.
Save Thiago4532/f1caf38422cc7df19b9b6a5e3e7d2d31 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main() {
long long A, B;
cin >> A >> B;
long long C = (A%10);
long long D = (B%10);
cout << (C*D)%10 << "\n";
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment