TOPIC

Presetation error

Oliver Landim Alves asked 1 year ago

include include
using namespace std;

int main () { int x, y;

   cin >> x >> y;
   cout << setprecision(3)<< fixed<<(x*y)/12.0; 

return 0 ;

}

resulta em" presetation error", antes havia tentado este e resultou na mesma coisa (results in "presetation erro, I try this other way but results in the same thing")

include include
using namespace std;

int main () { int x, y; float z;

   cin >> setprecision(3) >> fixed >> x >> y;
   z = (x*y);
   cout << setprecision(3)<< fixed<<z/12; 

return 0 ;

}

This topic was solved and cannot recieve new replies.

  • sorryizaque replied 1 year ago

    cout << setprecision(3)<< fixed << z/12 << endl; Tente pular uma linha

  • sorryizaque replied 1 year ago

    include include

    using namespace std;

    int main(){ int a, b; cin >> a; cin >> b;

    float f = (a*b)/12.0;
    
    printf("%.3f\n", f);
    
    return 0;

    }