+ 1

User define function

Pls some should help me solve for this X*y/x%y*y

26th Jun 2019, 10:17 PM
Samuel Okotor
Samuel Okotor - avatar
10 Respostas
+ 1
thank you bro
26th Jun 2019, 10:24 PM
Samuel Okotor
Samuel Okotor - avatar
+ 1
Do you want me to define a function of it? In which programming language?
26th Jun 2019, 10:37 PM
Seb TheS
Seb TheS - avatar
+ 1
Actually x*y/x%y*y does not need a function definition, as the result would always be 0, but here is the program: https://code.sololearn.com/c8iQZ6BCXT65/?ref=app
26th Jun 2019, 10:44 PM
Seb TheS
Seb TheS - avatar
+ 1
thank bro
26th Jun 2019, 10:45 PM
Samuel Okotor
Samuel Okotor - avatar
+ 1
i appreciate your help
26th Jun 2019, 10:46 PM
Samuel Okotor
Samuel Okotor - avatar
+ 1
That was not much.
26th Jun 2019, 10:47 PM
Seb TheS
Seb TheS - avatar
0
Because *, / and % have the same operation precedence, we can solve operations from left to right. We can break x*y/x%y*y into 4 parts: x*y=xy xy/x=y y%y=0 0*y=0
26th Jun 2019, 10:22 PM
Seb TheS
Seb TheS - avatar
0
Easy thing 👍
26th Jun 2019, 10:24 PM
Seb TheS
Seb TheS - avatar
0
can you write the whole code for me please?
26th Jun 2019, 10:35 PM
Samuel Okotor
Samuel Okotor - avatar
0
java please
26th Jun 2019, 10:38 PM
Samuel Okotor
Samuel Okotor - avatar