here’s the code
#include<stdio.h>
#include<math.h>
int main()
{
int a,b,c,d,e;
scanf("%d%d%d",&a,&b,&c);
a>-10000 && a<10000;
b>-10000 && b<10000;
c>-10000 && c<10000;
if(2b==a+c)
{
printf(“AM”);
d=c+(b-a);
printf("%d",d);
}
else if(bb==ac)
{
printf(“GM”);
e= c(b/a);
printf("%d",e);
}
else if(a==0&&b==0&&c==0)
{
return 1;
}
else
{
return 1;
}
return 0;
}