# Greetings
k_GREETINGS = "Hello Math RatTrigger"
print(k_GREETINGS)
k_GREETINGS = "I am BDB. I aim at pgming Proc() in Rational Numbers mostly !"
print(k_GREETINGS)
# Ressources to get ideas from
# Let's find the square root of a Natural Number ( < a few ten millions)
# Deklare Konstants
k_POWEROf2 = "²"
k_SIGN1 = " = "
k_SIGN2 = " < "
Nat_Root= 2436
Nat_Kount = 1
Nat_N2 = 1
while Nat_N2 < Nat_Root:
Nat_Kount += 1
Nat_N2 = Nat_Kount * Nat_Kount
Nat_N2P1 = (Nat_Kount + 1) * (Nat_Kount+1)
if Nat_N2 == Nat_Root:
print( str(Nat_Kount) + k_POWEROf2 + k_SIGN1 + str(Nat_Root))
else:
print( str(Nat_Kount) + k_POWEROf2 + k_SIGN2 + str(Nat_Root) + k_SIGN1 + str(Nat_N2P1)+ k_POWEROf2) )
To embed this project on your website, copy the following code and paste it into your website's HTML: