+ 7
Can anyone help me with this math problem?
You need to calculate the points earned by a soccer team. The team won 18 games and ended 7 games as a draw. A win brings 3 points, while a draw brings 1.
21 Réponses
+ 5
print(18*3 +7*1) is the answer
+ 12
in Python,
won = 18
draw = 7
winpoints = 3
drawpoints = 1
wontotal = won*winpoints
drawtotal = draw*drawpoints
ans = drawtotal+wontotal
print(ans)
+ 8
in JavaScript,
var won = 18;
var draw = 7;
var winpoints = 3;
var drawpoints = 1;
var wontotal = won*winpoints;
var drawtotal = draw*drawpoints;
var ans;
ans = drawtotal+wontotal;
console.log(ans)
+ 5
Nikos Papadopoulos you can't do it, it's possible you're having problem with the input system Solomoni Railoa gave. Well, it's better you just assign a number to the wins and draws.
If you don't still understanding, then try understanding.
+ 2
We have already found the answer: print(18*3+7*1)
+ 1
Still can't do it 😅
+ 1
No prob😁😁
+ 1
David Odedoyin not really because I tried it already and it was incorrect
0
Python for beginners
0
I downloaded another app for learning, no worries.i just don't understand why do I have to learn maths in a beginning lesson in a course nvm
0
Huge thanks anyway
0
hasansastark yep that was correct finally.. 😅 appreciate it
0
Your function is something like this:
total_point=3*n_game_won+1*n_game_draw
n_game_won=18
n_game_draw=7
0
61
0
Seems like my answer
0
Wow,it was correct when I tried it
0
What math
0
It's very easy you are pro but steal you don't know... how dude.
- 1
In c++,
#include<iostream>
using namespace std;
int main(){
int wonScore=3;
int drawScore=1
int won=18;
int draw=7;
int wonPoints = wonScore*won;
int draw Points = drawScore*draw;
cout<<wonPoints + drawPoints;
return 0;
}
- 1
In math,
Won = 18, Draw = 7,
By winning one match you get=3points
By draw of one match we get = 1point
So,
By winning we get points = 18*3=54
By get a draw we get points = 7*1=7
Total points=54 + 7 = 61
Ans-> 61 points are earned by a soccer team