0

X= 9y / 5+32

How would you write it in C expression?

15th Mar 2018, 9:53 AM
computer
2 Respuestas
+ 10
@computer , firstly U need to which operation U want to perform first ... 9*y/5+32 //if U want to do /5 , not by /(5+32) 9*y/(5+32) //if U want to /37 //* have precedence equal to that of / ... & evaluation is from left to right ... so not used bracket there //just noticed some gap after & before of / , so might u first wanted to calaculate them ... then divide
15th Mar 2018, 10:21 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 7
double x = (9 * y) / 5 + 32
15th Mar 2018, 10:04 AM
David Akhihiero
David Akhihiero - avatar