is the equation correct?!?

Hello,
I have study C++ program since few monthes,
and i do some practices to be better.
so i want to be sure if my equation is correct?!


//this program will evaluate a value of f.
#include<iostream>
#include<conio.h>
#include<cmath>
using namespace std;
int main()
{
double fxy,x,y;
cout<<"Enterx:";
cin>>x;
cout<<"Enter y:";
cin>>y;
fxy=(sqrt(x)+sqrt(y)+pow(2,x))-pow(2,-y);
cout<<"x:"<<x<<endl;
cout<<"y:"<<y<<endl;
cout<<"f(x,y)="<<fxy<<endl;
cout<<"press any key to continue";
while(!kbhit());
}
Last edited on
[code] Your code goes here [/code]
What is it suppose to do?
Last edited on
Topic archived. No new replies allowed.