Use if and else
for example :
int a = 5, b = 5;
if(a > b){
cout <<" a is greater than b ";
}
else if (a == b){
cout << "a is equals than b";
}
else{
cout << "a is less or equal than 4";
}
Komentar
Posting Komentar