Get Answers to all your Questions

header-bg qa

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

Answers (1)

best_answer

#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;

 
 

Posted by

Deependra Verma

View full answer