+ 2

Whats wrong here.

suppose i want to calculate the average of three numbers and i write this way. a=4; b=3; c=1; avg=a*b*c/3; where did i go wrong

19th Jul 2017, 5:09 AM
stephen haokip
stephen haokip - avatar
3 Antworten
+ 7
You can't multiply it, you'll need to count it up: ( a + b + c ) / 3 Remeber the brackets!
19th Jul 2017, 5:18 AM
Limitless
Limitless - avatar
+ 3
ok thanks
19th Jul 2017, 6:48 AM
stephen haokip
stephen haokip - avatar
0
sum of numbers: (a+b+c)/3
19th Aug 2017, 12:36 PM
Gsus Tuesta Rodas
Gsus Tuesta Rodas - avatar