TOPIC

Wrong Answer 5%.

Md Rakibul Islam asked 8 months ago

include<bits/stdc++.h>

using namespace std;

int main() {

long long int n,x,i,z,k;

double result, sub;

cin>>n>>x;

z=n*x;

for(i=10; i<=90; i=i+10) {

      result=z*(i*0.01);

      k=result;

      cout<<k<<endl;

      sub=result - k;

      if(sub>0){

        cout<<k+1;

      }

      else{

        cout<<k;

      }

      if(i<90){

        cout<<" ";

      }

      else{

        cout<<"\n";

      }
      }
      }

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.