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
1
Expert's answer
2013-06-06T09:42:37-0400
///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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS