write a c++ program for a² + b²..using pow function in dev c++...please..
Answers
Answered by
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++........
#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