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;}
Comments
Leave a comment