## Thread: WAP for Algebraic Formulas

Forum : Problem Solving
21 Days ago

#### WAP for Algebraic Formulas

Explanation:-

We have formulas like

** (a+b)^ 2 = (a^2+b^2+2*a*b)** ,

**(a+b)^ 3 = (a^3+b^3+3*a^2*b+3*a*b^2)**, etc...

**(a+b)^ 3 = (a^3+b^3+3*a^2*b+3*a*b^2)**

Now I want the program to write the Algebra Formulas, If pass

**"n**" value as power**Example:-**

**I**f I pass n=2, then formula should be like

**(a+b)^ 2 = (a^2+b^2+2*a*b)**

**(a+b)^ 3 = (a^3+b^3+3*a^2*b+3*a*b^2)**
tags:
problem-solving

## Comments

## ekkumar

Newbie

Joined : Dec 5, 2018

Points : 100

Threads: 0

Posts: 2

## Re: WAP for Algebraic Formulas

## Confirmation

Do you really want to make this post as 'Answered'?

## Confirmation

Do you really want to make this post as 'Un-Answered'?

No More Comments