answersLogoWhite

0

#include<iostream.h>

#include<conio.h>

void main()

{

clrscr();

int n,x,y=1;

cout<<"Please enter x: ";

cin>>x;

cout<<"Please enter n: ";

cin>>n;

//Coding by: Snehil Khanor

//http://WapCPP.blogspot.com

for (int i=1;i<=n;i++)

y=y*x;

cout<<y;

getch();

}

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

C plus plus program calculate the power value of input base and exponent numbers?

cn = c0 *( 1 + i ) pow n


How do you write ten to the power of twelve in numbers?

Ten to the power of 12 in numbers is: 1012


Write a java application that generates two random numbers using built in method math random ranging 5 to 8 the program should use another built in method to calculate the power of xy the x value is t?

write a java application that generate custemer account balance in a banking system?


How do you calculate numbers with a fraction to the power of?

Whit a calculator


How do you write a pseudocode program for finding out x to the power of y?

X**y


What is it called when you write numbers using values and exponents?

Base, power, answer


What is a system of unit of measurement which use the power of ten?

I think you are referring to scientific notation in which you read numbers multiplied by ten and to the power of whatever. Example: You can write 1,000,000.0, or you can write 1.0 x 10 to the sixth power or for numbers with a value less than 1 Example: You can write 0.000001, or you can write 1.0 x 10 to the negative sixth power Either way you write it the number is the same.


Write a program to calculate m rased to power n?

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


How do you write numbers as powers?

You give them exponents. For example 5 becomes a power when it is 5 to the 3rd power (5^3).


Write a program using recursion which should take two values and display 1st value raised to the power of second value?

Write a program using recursion which should take two values and display 1st value raised to the power of second value.


What is 10000000000 to the hundredth power?

To calculate this, write the number as a power of ten, and use the fact that when you raise a power to a power, you simply multiply the exponents. (10^10)100 = 10^20


How do you write a power as a product of the same factor?

You have to add the two numbers together then multiply it by 2.