yjh071126   4년 전

계속 19.0000 이나오는데 어떻게 없에나요..?

#include

using namespace std;

int main() {

double a, b;
double c;
scanf("%lf %lf", &a, &b);
c = b*2 - a;
printf("%.4f", c);
return 0;
}

djm03178   4년 전

4 대신 0을 쓰면 됩니다.

댓글을 작성하려면 로그인해야 합니다.