Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions


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')
print c ,'is the answer'

0 0 0

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 0 0
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts