how to make the 3 in dm3 to superscript?
[What is the volume(in dm3) ]
how to make the 3 in dm3 to superscript?
[What is the volume(in dm3) ]
Think about what dm3 really means. It evaluates to (dm*dm*dm). If you know that the 3 will be constant, you could hard-code the multiplication for a much faster result.
Alternately, look into the built-in math functions, especially pow() > cmath (math.h) - C++ Reference
i want to display the dm3 using printf
printf("2. What is the volume(in dm3)of 1 mol of any gas at any room conditions?")
how to produce an output with dm(superscript 3)
What you want to do is system-specific, unless you use Unicode. ASCII characters don't include superscript numbers( neither index ones ).
Devoted my life to programming...
can u give me a source code regarding to this problem?
Nope, but I can give you a link to wikipedia.
Devoted my life to programming...