INSTITUTO TECNOLÓGICO SUPERIOR DE LIBRES
ORGANISMO PÚBLICO DESCENTRALIZADO
MATERIA: FUNDAMENTOS DE PROGRAMACION
DOCENTE: LIC: SAUL ORTIZ BAEZA
ALUMNA: ALMA DELIA GUZMÁN LÓPEZ
PRIMER SEMESTRE GRUPO “B”
TEMA: ENSAYO DE LAS COMFERENCIAS
FECHA DE ENTREGA: MIERCOLES 10 DE OCTUBRE DEL 2011
NUMERO MAYORProceso MAYOR
Escribir "elejir dos numeros";
Leer A,B;
Si A>B Entonces
A<-A;
Escribir "el mayor es:";
Escribir A;
Sino
B<-B;
Escribir "el mayor es:";
Escribir B;
FinSi
FinProceso
NUMERO PAR
Proceso sin_titulo
Escribir " teclear un numero"
Leer N;
R<-N%2;
Si R=0 Entonces
Escribir "ES NUMERO PAR";
Sino
Escribir "ES NUMERO IMPAR";
FinSi
FinProceso
FACTORIALProceso FACTORIAL
Escribir TECLEAR UN NUMERO;
leer A
X<-1
para x<-1 hasta A Hacer
X<-f*x
FinPara
Escribir "A!=", X ;
FinProceso
AREA DE UN CÍRCULO
Proceso sin_titulo
Leer r;
PI<-3.1416;
R<-PI*(r^2);
Escribir R;
FinProceso
AREA DE UN TRIANGULO
Proceso sin_titulo
Leer B,H;
R<-(B*H)/2;
Escribir R;
FinProceso
SUMA
Proceso sin_
Escribir "TECLA TRES NUMEROS";
Leer A,B,C;
R<-A+B+C;
Escribir "EL RESULTADO ES";
Escribir R;
FinProceso
MULTIPLICACION
Proceso sin_titulo
Escribir "TECLEAR CINCON NUMEROS";
Leer A,B,C,D,E;
R<-A*B*C*D*E;
Escribir "EL RESULTADO ES";
Escribir R;
FinProceso
NUMERO PRIMO
Proceso sin_titulo
Escribir "TECLEAR UN NUMERO";
Leer B;
Si B=1 Entonces
Escribir "ES UN NUMERO PRIMO";
Sino
a<-0;
Para i<-1 Hasta x Hacer
si x mod i=0 Entonces
a<-a+1;
FinSi
FinPara
si a=2 entonces
Escribir "ES UN NUMERO PRIMO";
Sino
Escribir "NO ES UN NUMERO PRIMO";
FinSi
FinProceso
PERIMETRO DE UN CUADRADO
Proceso sin_titulo
Escribir "TECLEAR UN NUMERO";
Leer L;
R<-L+L+L+L;
Escribir R;
FinProceso
SERIA FIBONACI
Proceso sin_titulo
leer X
escribir " TECLEAR NUMEROS ANTECESORES Y SUCESOR DE ,X, EN LA SERIE FIBONACCI";
A1<-1
A2<-1
escribir 1
para F<-1 hasta X Hacer
A1<-A1+A2
A2<-A1-A2
escribir A2
FinPara
Escribir "SI ,X, NO APARECE EN LA SERIE NO ES UN NUMERO FIBONACCI";
Escribir "SI ,X, SI APARECE EN LA SERIE ES UN NUMERO FIBONACCI";
FinProceso
COMPARACION DE LOS 5 NUMEROSProceso sin_titulo
Leer A,B,C,D,E;
Si A<B Entonces
Si A<C Entonces
Si A<D Entonces
Si A<E Entonces
Escribir A;
Sino
Escribir E;
FinSi
Sino
Si D<E Entonces
Escribir D;
Sino
Escribir E;
FinSi
FinSi
Sino
Si C<D Entonces
Si C<E Entonces
Escribir C;
Sino
Escribir E;
FinSi
Sino
Si D<E Entonces
Escribir D;
Sino
Escribir E;
FinSi
FinSi
FinSi
Sino
Si B<C Entonces
Si B<D Entonces
Si B<E Entonces
Escribir B;
Sino
Escribir E;
FinSi
Sino
Si D<E Entonces
Escribir D;
Sino
Escribir E;
FinSi
FinSi
Sino
Si C<D Entonces
Si C<E Entonces
Escribir C;
Sino
Escribir E;
FinSi
Sino
Si D<E Entonces
Escribir D;
Sino
Escribir E;
FinSi
FinSi
FinSi
FinSi
FinProceso