Hello , seems like i still can't find the mistake on these problem , i have already done the test case , anyone can find what is the mistake ?
#include <stdio.h>
#include <math.h>
int main()
{
int test;
scanf("%d",&test);
while(test--)
{
long long int a , b;
scanf("%lld %lld",&a,&b);
long long int sum = pow(a,b);
long long int result = sum % 10;
printf("%lld\n",result);
}
return 0;
}
i have try the input testcase 0 0 and the output is 1 then 1 0 the output is 1 , still newbie here hope someone else can help me