👤

Să se determine ultima cifră a lui 9^x = 9x, unde x este număr natural citit de la tastatură.
repede


Răspuns :

COROANA TE ROG!!!

#include<iostream>

#include<cmath>

using namespace std;

int main(){

   int x;

   cin>>x;

   cout<<(int)(pow(9, x-1))%10;

}