Computer Science, asked by smartsaloni1503, 1 year ago

write a c++ program for a² + b²..using pow function in dev c++...please..

Answers

Answered by ritzpro
3
#include<iostream.h>
#include<math.h>
void main()
{
   int a, b;
   float c;          //will store the value of ur function
   cout<<"input a and b"<<endl;             
   cin>>a>>b;
   c= pow(a,2)+pow(b,2)
   cout<<"the value is:"<<c<<endl;
}
 

and as per ur age I recommend u to use Borland C++ 4.5 which is much easier then Dev C++........ 
Similar questions