All pastes #735913 Raw Edit

Untitled

public cpp v1 · immutable
·published 2007-10-14 00:56 UTC
rendered paste body
#include <iostream>bool esPar(int num);int main (){        int numero;        std::cout<<"Ingrese un numero, para salir solo introdusca 0"<<std::endl;        std::cin>>numero;        while (numero!=0){                if (esPar(numero)){                        std::cout<<"es par"<<std::endl;                        }                else{                        std::cout<<"es impar"<<std::endl;                        }                std::cin>>numero;        }        return 0;}bool esPar(int num){        return (num%2==0) ? true : false;}