Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Semrush - keyword research tool

Create your online store today with Shopify

Turn ChatGPT, Claude, Gemini, And CoPilot Into Your Personal Assistant, Business Coach, Content Creator, And More

AFFILIATE MARKETING Your all-in-one performance engine Manage affiliates, creators, and customer referrals in one unified platform—turning every partnership into measurable growth
Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Disclosure: My content contains affiliate links.

43,038 questions

55,895 answers

573 users

How to use exponent operator in Lua

2 Answers

0 votes
n = 2 ^ 4

print(n)




--[[
run:
 
16.0
 
--]]

 



answered Sep 24, 2020 by avibootz
edited Sep 25, 2020 by avibootz
0 votes
local i = 2
 
while (i < 10) do
    print(i ^ 2) -- ^ Exponent Operator 
    i = i + 2 
end
 
 
 
 
--[[
run:
 
4.0
16.0
36.0
64.0
 
--]]

 



answered May 5, 2024 by avibootz

Related questions

1 answer 358 views
358 views asked Sep 26, 2020 by avibootz
1 answer 317 views
2 answers 406 views
406 views asked Sep 26, 2020 by avibootz
2 answers 351 views
1 answer 386 views
386 views asked Sep 25, 2020 by avibootz
1 answer 299 views
299 views asked Sep 24, 2020 by avibootz
1 answer 293 views
293 views asked Sep 24, 2020 by avibootz
...