public double calNumero (double numC)
    {
        double C;
        if (numC==2||numC==5||numC==8){
            C=Math.pow(numC, 2);
            return C ;
        }
        if (numC==4||numC==7||numC==9){
            return numC*5;
        }else{
            return numC;
        }
            
    }