lundi 13 mars 2017

Multiple If condition and validate TRUE FALSE

#include <iostream>    
using namespace std;

int main(){
int x,y,z;    
int a,b,c;    
if(x!=a || y!=b || z!=c)
{
//some statements
}    
else
{
}    

}

when i run this code is transfer control to else but i don't know which one or two conditions getting false or may be all getting false

i want to know in return that which if condition was TRUE and which was FALSE but only with single if ,I don't wanna make multiple if and else.Thanks

Aucun commentaire:

Enregistrer un commentaire