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;}
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment