Maybe use this librady math.h
Type: Posts; User: std10093
Maybe use this librady math.h
Have you included this library <cmath> ? :)
If you are referring to the code of post #1,yes it compiled :)
What errors do you get?
It is a function :)
pow - C++ Reference
#include <iostream>
using namespace std;
int main(void)
{
int n=152;
int a,b,c,d,f,g,z;
a=n/100;
b=n/10;
Sorry for my difficulty to understand .
So what you want to do is to isolate every digit of the result and then make an if-else structure in order to print the colors.
I made an example (in c...
I cannot load both pages for some reason(mine problem i would say).
If i input 0 2 i get the output
Enter 1st & 2nd band color numbers: Enter 3rd band color number(Multiplier): The color code...
Notice that
cout <<"The color code of a "<<colornum<<multiplier<< " resistor is: "; will print the value of colornum and multiplier with no space between them.For example if colornum=2 and...