Dinner With Aminvai

Aminvai is a famous programmer of the world. He has a lot of fans & followers. Unfortunately, he has…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

#include <stdio.h>
int main()
{
int a,i; 
scanf("%d",&a); 
for(i=0;i<a;i++){ 
int b,c,d,e,f; 
scanf("%d",&b); 
c=b+4; 
d=c*2; 
e=d-8; 
f=e/2; 
printf("%d\n",f);}
    return 0;
}

Where is the prblm