like this
----->>{long long int n=0,a,b,c; for(n;cin>>n;n--){ while(cin>>a>>b>>c) {if(a>=1&&a<=4){ if(a==1){ cout<<b+c<<endl;} else if(a==2){ cout<<b-c<<endl;} else if(a==3){ cout<<b*c<<endl;} else if(a==4){ cout<<b/c<<endl;}}}}}