Thanks:  0
Likes:  0
Dislikes:  0

# Thread: How to make 120 using four Zero.

1. ## How to make 120 using four Zero.

Hi,
Use any arithmetic function.

2. ## Re: How to make 120 using four Zero.

How did you answer the question when it was asked of you?

3. ## Re: How to make 120 using four Zero.

(30*4)+0+0+0 = 120

or (3^0) * (3^0) * (3^0) * (3^0) * 120

4. ## Re: How to make 120 using four Zero.

[ QUOTE ]
(3^0) * (3^0) * (3^0) * (3^0) * 120

[/ QUOTE ]

I see 5 zeros here.

5. ## Re: How to make 120 using four Zero.

"make 120 using four Zero"

ok

3 * four zero (40)
3 * 40 = 120

silly - sorry, but it is...

6. ## Re: How to make 120 using four Zero.

1,1,1,1,0,0,0 ?

7. ## Re: How to make 120 using four Zero.

[ QUOTE ]
1,1,1,1,0,0,0 ?

[/ QUOTE ]

close.

8. ## Re: How to make 120 using four Zero.

I don't think we have enough information. Does he mean that there has to be exactly four zeros and any other numbers? Or exactly for zeros and no other number? What he mean by ANY arithmetic function? Can I use non-arithmetic function as well?
There is so many ways of solving this...

1) Let's define our own arithmetic function, lets name it afn
afn(x) = 30+x

now the solution is
afn(0)+afn(0)+afn(0)+afn(0)

2) strlen("

3) string result = (string)(e^0)+(string)(e^0+e^0)+(string)0

...

SilkMyPassion's assignment is far from complete...")

9. ## Re: How to make 120 using four Zero.

[ QUOTE ]
[ QUOTE ]
1,1,1,1,0,0,0 ?

[/ QUOTE ]

close.

[/ QUOTE ]

Hi Corey, I am with your answer. 120 in 8 bits or 1 byte is shown as 01111000

10. ## Re: How to make 120 using four Zero.

[ QUOTE ]
"make 120 using four Zero"

ok

3 * four zero (40)
3 * 40 = 120

silly - sorry, but it is...

[/ QUOTE ]
...cute [img]/images/graemlins/wink.gif[/img]

jokes apart.

question states that only 4 zero's are to be used. but How can you get 120 with only zero's? cant get a number out of a zero! [img]/images/graemlins/crazy.gif[/img]
but if not using only zero's , then Corey's answer makes sense.

Regards,
Tinker

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.