Computer Science, asked by rakshaksalve0, 6 months ago

write a program to solve c=a²+b² in c++​

Answers

Answered by khushi566628
0

Answer:

You have an inbuilt function called pow(a,b) which returns the value of a^b (a to the power of b).

So answer for your question is pow(a,2) == pow(b,2) + pow(c,3) ;

Or simply you could write a*a == b*b + c*c*c ;

Note: I have used == assuming you needed to compare LHS and RHS.

2.8K views

View 3 Upvoters

Related Questions (More Answers Below)

Explanation:

please like or follow

Answered by allysia
0

Language:

C++

Program:

#include <iostream>

using namespace std;

int main(){

int a,b,c;

cout<<"Enter the value of a: ";

cin>> a;

cout << "Enter the value of b: "

cin>> b;

cout<< "The required value of c is : ";

cout<< (a*a)+(b*b);

return 0;

}

Output:

Consider the attachment.

Explanation:

  • Took input for a and b.
  • and printed the sum after multiplying them to themselves.

Attachments:
Similar questions