64 638
Assignments Done
99,2%
Successfully Done
In September 2018

Answer to Question #31650 in C++ for zeeshan

Question #31650
write the program that gives an answer to question is it possible to make a XxY size postcard from AxB size?ask for the X,Y,A and B values the user
Expert's answer
///write the program that gives an answer to question is it possible to make a XxY size postcard from AxB size?ask for the //X,Y,A and B values the user

#include <iostream>

using namespace std;

int main()
{
double A,B,X,Y;
cout << "enter A " << endl;
cin>>A;
cout << "enter B " << endl;
cin>>B;
& cout << "enter X " << endl;
cin>>X;
cout << "enter Y " << endl;
cin>>Y;


if((X<=A)&&(Y<=B)||(X<=B)&&(Y<=A)){cout<<"yes, you can do it"<<endl;}
//if((X<=B)&&(Y<=A)){cout<<"yes you can do it"<<endl;}
else{cout<<"no, you can not do it"<<endl;}



return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions