verificarNumCrDec

Zaid · November 24, 2020 · C++
#include <iostream>
using namespace std;
int x,y;
int main() {
    //std::cout << "Hello world!" << std::endl;
    cin>>x;
    cin>>y;
    /*if(x>y){
        cout<<"decreciente";
    }else{
        cout<<"creciente";
    }*/
    //estructura falso
/*if(x>y){
    cout<<"decreciente";
}else{
    if(x==y){
        cout<<"iguales";
    }else
    cout<<"creciente";
}*/
    if(x>=y){
        if(x==y){
            cout<<"iguales";
        }else{
            cout<<"decreciente";
        }
    }else{
        cout<<"creciente";
    }
    return 0;
}

Comments

Please sign up or log in to contribute to the discussion.