# Find the power of one to second number coderinme

##### find the power

to find the Power of one number to raised another number
we know about it is written as a^b or pow(a,b). It is also called as exponents.
Exponentiation is a mathematical operation, written as b^n, involving two numbers, the base b and the exponent n. When n is a positive integer, exponentiation corresponds to repeated multiplication of the base: that is, b^n is the product of multiplying n bases
2 pow 3 = 2^3 = 2 x 2 x 2 = 8
Some common exponents have their own names: the exponent 2 (or 2nd power) is called the square of b (b^2) or b squared; the exponent 3 (or 3rd power) is called the cube of b (b^3) or b cubed. The exponent −1 of b, or 1 / b, is called the reciprocal of b.
let’s code

``````#!/bin/bash
read -p "Enter the first number: " num1
read -p "Enter the second number: " num2
let res=num1**num2
echo "\$num1 raised to the power \$num2 is: \$res"``````

For more Linux questiom

All rights reserved. No part of this Post may be copied, distributed, or transmitted in any form or by any means, without the prior written permission of the website admin, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law. For permission requests, write to the owner, addressed “Attention: Permissions Coordinator” to the admin @coderinme

### hasectic

A web developer(Front end and Back end), and DBA at csdamu.com. Currently working as Salesforce Developer @ Tech Matrix IT Consulting Private Limited. Check me @about.me/s.saifi