Jun 02, 2021 Article blog
There are many ways to find the circumference rate π, the code representation is also a lot, W3Cschool sister has seen several. But with four simple lines of code, the circumference rate π to 800 bits after the decimal point, or for the first time.
Some netizens shared four lines of c code, said to be looking for a circumference rate π to 800 decimal places. A nd the netizen says the code is called an alien program. At first glance, it was very shocking, and I couldn't figure it out at all.
What do netizens think of these four lines of code? Here's a selection of netizens' answers:
Netizen I: This is a pi's spigot algorithm!
Netizen 2: Knock to half found there are bugs?? Please explain!
Netizen 3: Who can tell me about orz?
It seems that the code, everyone's views are different, and some people say that knock to half of the found bugs, do not know what is going on. E ither way, you'll find out when you go back and try it. B elow, the W3Cschool sister-in-law is in place to share three lines of code. The three lines of code, which the sharer said were first seen, were simply amazing.
Netizen I: What are these people's brains made of... A lot of bends.
Netizen two: looked at half a day of reaction over.
Netizen THREE:
Let's have a swap faster:
a=a^b;
b=a^b;
a=a^b;
Netizens IV: a sb, b s a s 0 s;
Netizens V: a sb s s b s a s b
Above W3Cschool sister-in-law shared two pieces of code, we do not see the same, do not know you understand? Believe that there are a lot of technical bulls in the netizens, what do you think of these two pieces of code?