WAP TO DETERMINE THE VALUE OF EXPRESSION: 2-YE^2Y+4^Y AND ALSO OBTAIN VALUE OF Y FROM USER.

#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
   const double e=2.71828;
   double result,y;
   clrscr();
   cout<<"Enter the value of y:";
   cin>>y;
   result=2-y*exp(2*y)+pow(4,y);
   cout<<"The result of given expression is: "<<result;
   getch();
}

Comments

Popular Posts