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

Prodentim Probiotics Specially Designed For The Health Of Your Teeth And Gums

Instant Grammar Checker - Correct all grammar errors and enhance your writing

Teach Your Child To Read

Powerful WordPress hosting for WordPress professionals

Disclosure: My content contains affiliate links.

31,111 questions

40,781 answers

573 users

How to use pow in Ruby

1 Answer

0 votes
p = 3 ** 3
print p, "\n"
 
p = 10 ** 4
print p, "\n"
 
print 3.pow(3), "\n"
print 10.pow(4)
 
  
  
  
  
#
# run:
# 
# 27
# 10000
# 27
# 10000
#

 





answered Oct 16, 2021 by avibootz

Related questions

1 answer 32 views
1 answer 80 views
80 views asked Dec 24, 2020 by avibootz
1 answer 81 views
81 views asked Dec 22, 2020 by avibootz
1 answer 84 views
84 views asked Dec 22, 2020 by avibootz
...