Home > Back-end >  Please bosses won't help me take a look at why run
Please bosses won't help me take a look at why run

Time:01-07

#include
using namespace std;
Every 2.90 yuan/* badminton, table tennis every 1.70 yuan, xiao li bought several badminton and ping pong, spent a total of
80.20 yuan, he see the number of the badminton significantly fewer please programming to figure out what he buy the number of badminton (only
Output an integer), */

Int main () {
int x, y;
For (x=1; X & lt; 100; X + +) {
For (y=1; Y & lt; 100; Y++) {
If (2.9 * 80.2==x + 1.7 * y) {
Cout & lt; <"Badminton number is:" & lt; }
}
}
return 0;
}
  • Related