#2903: 討厭的數字~~砍不掉


a102031516 (感謝文旋讓我參加TOI)


#include<iostream>
#include<math.h>
using namespace std;
int main()
{   int a,b,c,d,e,f;
    while (cin>>a>>b>>c>>d>>e>>f)
          {
          cout<<pow(a,b)<<'\n';
          cout<<printf("%.3f\n",pow(c,0.5));
          //cout<<'\n';
          if (d<0)
             cout<<-d;
          else
              cout<<d;
          cout<<'\n'<<e<<'\n';
          }

   system("pause");
   return 0;
}
如果輸入範例測資

-20那一行就會輸出620

如果把while後的第四行  //cout<<'\n';  的//拿掉

6就會出現再下一行

誰能救救我(好像有另外的語法可以輸出5.000)