write a program to print p to the power q
Answers
Answered by
2
In Java:
public class print
{
public static void main ()
{
int p,q,a;
a=Math.pow(p,q);
System.out.println ( a );
}
}
public class print
{
public static void main ()
{
int p,q,a;
a=Math.pow(p,q);
System.out.println ( a );
}
}
Similar questions