#include <iostream>
using namespace std;
int main() {
int a,b,c;
float d;
cin >> a >> b >> c;
d=(a*(c-b))*4184;
cout << "The energy needed is " << d;
return 0;
}
using namespace std;
int main() {
int a,b,c;
float d;
cin >> a >> b >> c;
d=(a*(c-b))*4184;
cout << "The energy needed is " << d;
return 0;
}
While running the program the output is correct but when we evaluate then it is showing 0%
ReplyDeleteremove those extra brackets in d=a*(c-b)*4184 this is the right answer
Delete