#include <iostream>#include <string>int main(){ std::cout.width(18); std::cout<<"X Y"; int min,max; for(double i = -2;i <= 20; i+=0.25){ if(i < 10){ std::cout.width(8); std::cout<<i<<' '; std::cout.width(8); std::cout<<(i + 5) / i<<std::endl; if(i == -2){ min = (i + 5) / i; max = (i + 5) / i; } if((i + 5) / i < min) min = (i + 5) / i; else if((i + 5) / i > max) max = (i + 5) / i; } else if(i > 10){ std::cout.width(8); std::cout<<i<<' '; std::cout.width(8); std::cout<<((i * i) / 2) + (1/i)<<std::endl; if((((i * i) / 2) + (1/i) < min)) min = ((i * i) / 2) + (1/i); else if(((i * i) / 2) + (1/i) > max) max = ((i * i) / 2) + (1/i); } else{ std::cout.width(8); std::cout<<i<<' '; std::cout.width(8); std::cout<<i<<std::endl; if(i < min) min = i; else if(i > max) max = i; } } std::cout<<std::endl<<std::endl; std::cout.width(8); std::cout<<min<<' '; std::cout.width(8); std::cout<<max<<std::endl; return 0;}