3 Replies - 313 Views - Last Post: 06 February 2018 - 07:53 PM Rate Topic: -----

#1 bellmo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 05-February 18

how to write this equation in C++

Posted 05 February 2018 - 08:32 PM

S_inner=S_cyl+S_cap=2πR_cyl H_cyl+2πR_cap h_cap I've been entering this equation over and over in different ways but every time I press compile and enter the numbers it always shows up as a zero, can someone help me, please?
Is This A Good Question/Topic? 0
  • +

Replies To: how to write this equation in C++

#2 tony jay  Icon User is offline

  • D.I.C Head

Reputation: 18
  • View blog
  • Posts: 50
  • Joined: 31-January 18

Re: how to write this equation in C++

Posted 05 February 2018 - 08:44 PM

Based on what you have written - no!

Forget about programming whatever this equation is meant to do.
Can you solve this thing as an algebraic equation?

Also, if you want others to contribute then you will have to explain, in detail, what this equation is all about.
Based on what you have written I am not certain whether we are talking about physics or accountancy!

(Don't make the mistake of thinking that whatever ability we have in C++, automatically transfers to whatever domain of study this equation comes from.)
Was This Post Helpful? 0
  • +
  • -

#3 snoopy11  Icon User is offline

  • Engineering ● Software
  • member icon

Reputation: 1460
  • View blog
  • Posts: 4,726
  • Joined: 20-March 10

Re: how to write this equation in C++

Posted 05 February 2018 - 09:35 PM

You would have to post a small complete program which demonstrates your problem.
Was This Post Helpful? 0
  • +
  • -

#4 pbivens85  Icon User is offline

  • D.I.C Regular

Reputation: -4
  • View blog
  • Posts: 409
  • Joined: 22-October 13

Re: how to write this equation in C++

Posted 06 February 2018 - 07:53 PM

I agree with snoopy, stub out some code that incorporates your equation. this seems like a volume of a cylinder equation.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1