#include\x20 #include\x20 using\x20namespace\x20std;

int\x20main()\x20{ \x20\x20int\x20A,\x20B; \x20\x20cin\x20>>\x20A\x20>>\x20B; \x20\x20if\x20(B\x20==\x200)\x20{ \x20\x20\x20\x20cout\x20<<\x20A\x20<<\x20"/0=Error"\x20<<\x20endl; \x20\x20}else\x20if\x20(B\x20>\x200)\x20{ \x20\x20\x20\x20cout\x20<<\x20A\x20<<\x20"/"\x20<<\x20B\x20<<\x20"="\x20<<\x20fixed\x20<<\x20setprecision(2)\x20<<\x20(double)A/B\x20<<\x20endl; \x20\x20}else\x20{ \x20\x20\x20\x20cout\x20<<\x20A\x20<<\x20"/("\x20<<\x20B\x20<<\x20")="\x20<<\x20fixed\x20<<\x20setprecision(2)\x20<<\x20(double)A/B\x20<<\x20endl; \x20\x20} \x20\x20return\x200; }

C++ 程序:整数除法计算器 - 绝对值不超过 100

原文地址: https://www.cveoy.top/t/topic/pzy8 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录