Answers

2014-07-20T00:16:17+05:30
There r many languages through this program can be written , i am writting this in python:
import maths 
a=input('enter the no.')
b=input('enter the power')
c=math.pow(a,b)
print c ,'is the answer'

0
2014-07-21T12:42:12+05:30


There are many programs in which this can be computed; I am writing this in Java:

Scanner sc=new Scanner(System.in);

System.out.println("Enter no.");

int x=sc.nextInt();

System.out.println("Enter power");

int y=sc.nextInt();

int ans=Math.pow(x,y);

System.out.println("The answer is="+c);

0