#include <iostream>
#include <clocale>
int main()
{
std::setlocale(LC_ALL, "Russian");
double
a, result;
std::cin >> a;
for (size_t i = 2u; ; i++)
result = 1 + static_cast<double>(1) / i;
if (result >= a)
std::cout << "1 + 1 / " << i << std::endl;
else break;
}
std::system("PAUSE >> void");
return 0;
#include <iostream>
#include <clocale>
int main()
{
std::setlocale(LC_ALL, "Russian");
double
a, result;
std::cin >> a;
for (size_t i = 2u; ; i++)
{
result = 1 + static_cast<double>(1) / i;
if (result >= a)
std::cout << "1 + 1 / " << i << std::endl;
else break;
}
std::system("PAUSE >> void");
return 0;
}