Search:

Type: Posts; User: std10093

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    18,563

    Maybe use this librady math.h

    Maybe use this librady math.h
  2. Replies
    15
    Views
    18,563

    Have you included this library ? :)

    Have you included this library <cmath> ? :)
  3. Replies
    15
    Views
    18,563

    If you are referring to the code of post #1,yes...

    If you are referring to the code of post #1,yes it compiled :)

    What errors do you get?
  4. Replies
    15
    Views
    18,563

    It is a function :) pow - C++ Reference...

    It is a function :)

    pow - C++ Reference
  5. Replies
    15
    Views
    18,563

    #include using namespace std; ...

    #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;
  6. Replies
    15
    Views
    18,563

    Sorry for my difficulty to understand . So...

    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...
  7. Replies
    15
    Views
    18,563

    I cannot load both pages for some reason(mine...

    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...
  8. Replies
    15
    Views
    18,563

    Notice that cout

    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...
Results 1 to 8 of 8