Quick actions

cmd+k|ctrl+k

Navigation

Languages

lab3_119

Snippet info

Language

Cpp

Visibility

public

Author

matho.camara

Created

2018-10-23T17:56:42Z

Updated

2018-10-24T09:06:04Z

#include <iostream>
#include <math.h>
using namespace std;

int main() {
    int x,y,z,max,min;
	cout << "Input x,y and z values:"<<endl;// to store numbers
    cin>>x>>y>>z;
    
    //checking for bigger numbers
	if((x>y && y>z))
	{
	    max=x;
	    min=z;
	    cout<<"Result :"<<(pow(max,2)-pow(2,x))/(sin(2*x)+(max/min))<<endl;
	}
	else if(x>z && z>y)
	{
	    max=x;
	    min=y;
	    cout<<"Result :"<<(pow(max,2)-pow(2,x))/(sin(2*x)+(max/min))<<endl;
	}
	else if(y>z && z>x)
	{
	    max=y;
	    min=x;
	    cout<<"Result :"<<(pow(max,2)-pow(2,x))/(sin(2*x)+(max/min))<<endl;
	}
	else if(z>y && y>x)
	{
	    max=z;
	    min=x;
	    cout<<"Result :"<<(pow(max,2)-pow(2,x))/(sin(2*x)+(max/min))<<endl;
	}
	else if(y>x && x>z)
	{
	    max=y;
	    min=z;
	    cout<<"Result :"<<(pow(max,2)-pow(2,x))/(sin(2*x)+(max/min))<<endl;
	}
	
    return 0;
}
INFO