answersLogoWhite

0


Best Answer

P = 1

For K = 1 to M

. P = P * N

Next K

PRINT "N raised to the power of M is "; P

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Program to find n raise to the power m?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Write a c plus plus program that calculates the value of m raised to power n for both int and double data types?

#include <iostream> using namespace std; template <class T> T Raise(T m, int n) { T x = m; while( --n ) m*=x; return( m ); } int main() { cout<<"2 raised to the power of 3 is "<<Raise((int)2,3)<<endl; cout<<"1.6 raised to the power of 4 is "<<Raise((double)1.6,4)<<endl; return(0); }


What do they mean by a to the b power times a to the c power equals a b c power?

ab*ac=ab+c consider the powers of 2. 22=4, 23=8, 22*23=32=23+2=25 when multiplying a number by itself, you raise its power by one. when multiplying a number by itself n times, you raise it to the power of n, so if you raise a number to the power n, then the seame number to the power m, then multiply these together you are multiplying n+m times


What power point software program consists of slides?

The name of the software that consists of slides is Powerpoint.


What is the fourth index law?

The fourth index law states that when you raise a power to another power, you multiply the exponents. For example, (a^m)^n = a^(m*n).


How do you take a number to a frational power?

The easiest way to do this is with a calculator. Anyway, the definitions are as follows. x to the power 1/2 is the square root of x, x to the power 1/3 is the cubic root of x, and in general, x to the power 1/n is the nth. root of x. If you also have a number other than one in the numerator: For example, to calculate x to the power 3/5 you first raise x to the power 3, then take the fifth root of the result. You can also do it the other way: first calculate the fifth root, then raise to the third power. In general, to calculate x to the power m/n, you take the nth root, then raise the result to the power m.


How much power is required to raise a 200-kg crate a vertical distance of 2 m in a time of 4 s?

The work done to raise the crate is given by the formula W = mgh, where m is the mass of the crate, g is the acceleration due to gravity, and h is the height raised. In this case, W = (200 kg)(9.81 m/s^2)(2 m) = 3924 J. The power required is P = W/t, so P = 3924 J / 4 s = 981 W.


What is m to the 2 power plus m to the 3 power?

it depends on what m is.


What is m to the power of 4 divided by m to the power of six simplified?

it will be m to the power -2. assuming m as any variable.


Write a program to calculate m rased to power n?

#include<iostream.h> #include<conio.h> #include<math.h> void main() { clrscr(); int m=3,n=2; int a; a=pow(m,n); cout<<a; getch(); }


How many seconds would it take a 1200 W motor to raise a 9800 N to 10 m high?

Calculate the amount of potential energy required. Then divide by the power.


Do a program to find a smallest number in the array using 8085 microprocessor?

Lxih, 2200 mov c,m inxh mov a,m inxh cmp m jc l1 mov a,m dcr c jnz l2 inhx mov m,a hlt


What does M to the second power equal?

The "second power" means squared. "Squared" means multiplied by itself. Thus M to the second power = M times M.