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

Recommended Answers

All 2 Replies

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.

Member Avatar for Smartflight

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.