Professor Omkar

#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;
}

2 comments:

  1. While running the program the output is correct but when we evaluate then it is showing 0%

    ReplyDelete
    Replies
    1. remove those extra brackets in d=a*(c-b)*4184 this is the right answer

      Delete