Math, asked by amit2371, 3 months ago

write a program to calculate (a+b)^2

Answers

Answered by rashilakhotia2006
2

 {(a + b)}^{2}  =  {a}^{2}  + 2ab +  {b}^{2}

Answered by vishal10495152
0

Step-by-step explanation:

public class calculate

{

public void main()

{

int a = 24

int b = 6

int q = (a+b)²

System.out.println("Answer="+q);

}

}

Similar questions