When c is assigned to b, c will truncate the fractional part of b, leaving c with a smaller number than b. So when the b == c comparison is made, c has a different value than b. Also, implicitly, c is temporarily casted to a float so c's type matches that of b's.
cout<< the value of each number. What do you notice? b is a double which will have decimals. When you assign the value of b to the integer variable c, you lose those decimals. Are the two truly the same (*hint* the program tells you)?
i want to know wich number is like a^3 and if is like that type yes so what should i do to fix it
that when i type -27 or 125 the program should type yes because they are -3^3and 5^3
when i give 27 it says yes but when i give -27 says no