jai02
1
#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;
}
jai02
5
I got the solution
and I will format the code next time
you can just stop this thread or just post something like this as you already did…moreover please post the question link next time
people like me keep on trying to decipher the forum’s mangled code…