Daily Archives: November 17, 2016

What will be the value of 1+1^0 ?

Any positive number (say 35) raised to the power 0 is always 1.

Hence 1 raised to the power 0 will also be 1.

And adding 1 to that will give 2.
i.e. 1+1^0 :

=1+ (1^0)

=1+1

=2

A simple code to demonstrate it.

public class Test {
public static void main(String[] args) {
System.out.println(“35^0 = “+(int)Math.pow(35,0));
System.out.println(“1 + 1^0 = “+(int)(1+Math.pow(1, 0)));

}

}