Bài làm của em sai ở đâu ạ, mong được giúp đỡ ạ!!!
#include<iostream>
#include<fstream>
#include<math.h>
using namespace std;
int main()
{
ifstream input("Bai_14.INP");
ofstream output("Bai_14.OUT");
int N,n;
double x,y;
input >> N;
for (int i=0; i<N; i++)
{
input >> n >> x >> y;
double F=1;
for (int j=1; j<=n; j++)
{
F+=-pow(-1, j) * pow(x/y,j);
}
output.precision(5);
output << F << '\n';
}
input.close();
output.close();
return 1;
}




83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?