Hye.. Any know to create calculator program for formula V=IR In c++..??
Please help me.. ASAP
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.
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.