answersLogoWhite

0

#include<iostream>

int main() {

std::cout << "Enter value a: ";

double a;

std::cin >> a;

std::cout << "Enter value b: ";

double b;

std::cin >> b;

double sum {a+b};

std::cout << "a + b + (a + b) * (a + b) = " << sum + sum * sum << std::endl;

}

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

A plus b the whole square?

a square plus 2ab plus b square


What is formula for a plus b whole square?

(A+B)2 = (A+B).(A+B) =A2+AB+BA+B2 =A2+2AB+ B2 So the Answer is A + B the whole square is equal to A square plus 2AB plus B square. Avinash.


Do I need a C plus plus program to print PASCAL's triangle?

No.


What is the square of X2 plus 10x equals 18?

You never square a whole equation. That's just silly.


Do I need to write a program to find a substring in a given string in c plus plus?

No.


Project on the whole square of a plus b plus c?

(a+b+c)&sup2;=a&sup2;+b&sup2;+c&sup2;+ 2ab+2bc+2ac


Project on the whole square of a plus b?

The whole square of the sum of two terms, ( (a + b)^2 ), can be expanded using the formula: ( (a + b)^2 = a^2 + 2ab + b^2 ). This expression represents the square of ( a ) plus twice the product of ( a ) and ( b ), plus the square of ( b ). It highlights the relationship between the individual squares of the terms and their product, emphasizing how they combine in the squared result.


Do you need a CD burner to burn a CD?

Yes. Plus a program that burns. Plus files.


What 3 square plus 4 square?

i need the answer for my homework please help ASAP!


What is the formula of a plus b whole cube?

(a+b)cube = a cube + b cube + 3a square b + 3ab square


What is 320 plus the square root of 10 rounded?

320 plus the square root of 10, which is approximately 3.16, equals about 323.16. When rounded to the nearest whole number, this results in 323.


How do you show square root symbol in C plus plus code?

The square root symbol is Unicode 0x221A. To show it, you either need to draw it graphically, or you need to have a Unicode representation library.