// con1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include using namespace std; int main() { int a, b; double ratio; cout << "enter 2 int:"; cin >> a; cin >> b; if (b > a) ratio = (double)a / b; else ratio = (double)b / a; cout << "the ratio " << ratio << endl; return 0; }