ruby raise to power
# Step 1: Define a base and exponent
base = 2
exponent = 3
# Step 2: Use the '' operator to raise the base to the power of the exponent
result = base exponent
# Step 3: Print the result
puts result
# Step 1: Define a base and exponent
base = 2
exponent = 3
# Step 2: Use the '' operator to raise the base to the power of the exponent
result = base exponent
# Step 3: Print the result
puts result