Hye.. Any know to create calculator program for formula V=IR In c++..??
Please help me.. ASAP

Re: How To Create Calculator Program For Formula V=IR In C++ 80 80

Is this an assignment ? Did you try writing any code ?

Anyway, what you can do is ask the user what does he want to calculate ,whether V, I, or R. Take other two values as input from him. Using either if-else or switch you can decide which formula to execute according to what he wants to calculate. That will involve simple multiplication and division.

Re: How To Create Calculator Program For Formula V=IR In C++ 80 80
Member Avatar

Yeah, pretty simply indeed.
If you are having trouble with the code, post that here and explain your problem, and what you tried to do to fix it. That will be a good point to begin with.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.