Por que si num=7 Num no es ==7 y por ende no imprime 7? (Why if num=7 it can't print 7 when I push the option num==7? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Por que si num=7 Num no es ==7 y por ende no imprime 7? (Why if num=7 it can't print 7 when I push the option num==7?

23rd May 2018, 10:37 AM
Daniel
Daniel - avatar
3 Réponses
+ 4
what language?
23rd May 2018, 11:19 AM
SouthPoleHillbilly
SouthPoleHillbilly - avatar
+ 3
Please show your code? int main() { int n = 7; if (n == 7) std::cout << n; }
23rd May 2018, 10:51 AM
Hatsy Rei
Hatsy Rei - avatar
+ 3
¿Puedes mostrar el código o indicarnos dónde viste eso? De lo contrario no es posible darte una explicación.
23rd May 2018, 11:51 AM
Mickel
Mickel - avatar