answersLogoWhite

0


Best Answer

#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

8y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Need a c program for a plus b plus whole square?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Why can't my C plus plus program be run on other people's computers do I need an installer or something?

You need to find out what exactly it's missing. Usually it's a dll, which was not included in the program itself. But you have it installed on your computer.


C plus plus program to perform string manipulation?

You do not need to program string manipulation as it is already part of the standard library. See std::string and std::wstring.


Is there an answer book for the A plus program?

The A Plus Program is an initiative, not a test. So no, there is no answer book.


Write a C plus plus program to find out the square of first 10 numbers?

#include&lt;iostream&gt; int main() { int i=0; while(i++&lt;10) std::cout&lt;&lt;i*i&lt;&lt;std::endl; }


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.

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


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


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.


Why can't my C plus plus program be run on other people's computers do I need an installer or something?

You need to find out what exactly it's missing. Usually it's a dll, which was not included in the program itself. But you have it installed on your computer.


C plus plus program to perform string manipulation?

You do not need to program string manipulation as it is already part of the standard library. See std::string and std::wstring.