And the Question for creating this code is
"Is it possible to make a XxY size postcard from AxB size paper?"
#include <vcl.h>
#include <stdio.h>
#include <conio.h>
#include <iostream>
#pragma hdrstop
using namespace std;
#pragma argsused
int main(int argc, char* argv[])
{
int X, Y, A, B;
cout<<"Input A" << "\n";
cout<<"Input B" << "\n";
cout<<"Input X" << "\n";
cout<<"Input Y" << "\n";
cin >> A;
cin >> B;
cin >> X;
cin >> Y;
if((X*Y)< (A*B)/>){
cout<<"Possible";
}
else {
cout<<"Impossible";
}
while (!kbhit());
return 0;
}
This post has been edited by JackOfAllTrades: 18 March 2013 - 03:11 AM
Reason for edit:: Added code tags

New Topic/Question
Reply



MultiQuote



|