Help please!

#include
#include
using namespace std;

int main() {
// your code goes here
int n;
int a,b;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>a>>b;
float c=a*b;
if(a>1000)
{
c-=c/10;
cout<<fixed<<setprecision(6)<<c<<endl;
}
else if(a<1000)
{
cout<<fixed<<setprecision(6)<<c<<endl;
}
}

return 0;

}

Please format your code :slight_smile:

I got the solution :smile:
and I will format the code next time :sweat_smile:

you can just stop this thread or just post something like this as you already did…moreover please post the question link next time :slightly_smiling_face:

people like me keep on trying to decipher the forum’s mangled code…
:slightly_smiling_face: