A

@angelo_1

Serie de factorial

Python
7 hours ago
n=int(input()) d=1 s=0 for i in range(1,n+1): d=d*i print(d) s=s+d print("La suma es: ",s)

Serie con "repetir"

Python
1 week ago
n=int(input()) i=1 s=0 while True: t=i**2 print(t, end=" ") i=i+1 s=s+t if i>n: break

Generar una Serie y sumar

Python
1 week ago
n=int(input()) s=0 for i in range(1,n+1): t=i**2 s=s+t print(t) print("La suma es:",s)

Tabla de suma y producto

Python
2 weeks ago
n=int(input()) print("La tabla de suma es:") for i in range(1,11): s=n+i print(n,"+",i,"=",s) print("La tabla de producto es:") for i in range(1,11): p=n*i print(n,"*",i,"=",p)

Control de una clave con 3 inten.

Python
2 weeks ago
x=123 c=0 Do-while y=int(input("")) if y==x: print("Éxito") else:

Factoriales

Python
2 weeks ago
n=int(input("Ingrese un número positivo: ")) print(" ") p=1 for i in range(1,n+1): p=p*i print("El factorial del número", n, "es:",p)

Números primos

Python
3 weeks ago
n=int(input("Ingrese un valor entero: ")) print(" ") c=0 for i in range(1, n+1): if n%i==0: c=c+1 if c==2: print("Es número primo") else: print("No es primo")

Ubicar el cuadrante y distancia en qué se encuentra P(x,y) respecto del origen

Python
3 weeks ago
x=int(input("Ingresar la coordenada en x: ")) y=int(input("Ingresar la coordenada en y: ")) if x>0 and y>0: print("El punto está en el 1er cuadrante ") if x<0 and y>0: print("El punto está en el 2do cuadrante") if x<0 and y<0: print("El

Suma y producto de números imaginarios

Python
3 weeks ago
a=int(input("Ingrese el valor de la parte real de la primera función: ")) b=int(input("Ingrese el valor de la parte imaginara de la primera función: ")) c=int(input("Ingrese el valor de la parte real de la segunda función: ")) d=int(input("Ingrese e

Calcular la edad a partir de la fecha de nacimiento

Python
3 weeks ago
da=int(input("Ingrese el dia actual: ")) ma=int(input("Ingrese el mes actual: ")) aa=int(input("Ingrese el año actual: ")) dn=int(input("Ingrese el dia de nacimiento: ")) mn=int(input("Ingrese el mes de nacimiento: ")) an=int(input("Ingrese el año d

Calcular el tiempo que falta para una fecha

Python
3 weeks ago
da=int(input("Ingrese el dia actual: ")) ma=int(input("Ingrese el mes actual: ")) aa=int(input("Ingrese el año actual: ")) df=int(input("Ingrese el dia futuro: ")) mf=int(input("Ingrese el mes futuro: ")) af=int(input("Ingrese el año futuro: ")) d1=

Res. de sist. de dos ec.(2x2)

Python
4 weeks ago
a=float(input("Ingrese el coeficiente de X en la primera ecuación: ")) b=float(input("Ingrese el coeficiente de Y en la primera ecuación: ")) c=float(input("Ingrese el resultado de la primera ecuación: ")) d=float(input("Ingrese el coeficiente de X

Resolución de ecuaciones de 2do grado

Python
4 weeks ago
a=float(input("Ingrese el coeficiente a: ")) b=float(input("Ingrese el coeficiente b: ")) c=float(input("Ingrese el coeficiente c: ")) if a==0: print("Sin solución") else: d=(b**2)-(4*a*c) print("El discriminante es: ", d) if d>0:

Indicador de IMC de una persona

Python
1 month ago
altura=float(input("Ingrese su altura en m: ")) peso=float(input("Ingrese su peso en kg: ")) IMC=peso/altura**2 if IMC>30: print("Obesidad", IMC) else: if IMC>25: print("Sobrepeso", IMC) else: if IMC>18.5:

Distancia entre puntos, punto medio e inclinación

Python
1 month ago
import math X1=float(input("Ingrese la coordenada X del punto 1: ")) Y1=float(input("Ingrese la coordenada Y del punto 1: ")) X2=float(input("Ingrese la coordenada X del punto 2: ")) Y2=float(input("Ingrese la coordenada Y del punto 2: ")) d=math.sq

Cambiar el signo de un número negativo

Python
1 month ago
n=int(input("Ingrese un valor negativo: ")) if n<0: n=n*(-1) print(n) else: print("El valor no es negativo: ")

Identificar el tipo de triángulo

Python
1 month ago
a=int(input("Ingresar el lado a: ")) b=int(input("Ingresar el lado b: ")) c=int(input("Ingresar el lado c: ")) if (a==b) and (b==c): print("Equilátero") if (a!=b) and (b!=c) and (a!=c): print("Isóceles") if (a==b and b!=c) or (a==c and c!=b)

El mayor número sin condicionales

Python
1 month ago
a=int(input("Ingrese un valor de a: ")) b=int(input("Ingrese un valor de b: ")) c=int(input("Ingrese un valor de c: ")) M1=(a+b+abs(a-b))/2 M2=(M1+c+abs(M1-c))/2 print("El número mayor es: ", M2)

Área del triángulo a partir de sus lados

Python
1 month ago
a=int(input("Ingresar el valor de a: ")) b=int(input("Ingresar el valor de b: ")) c=int(input("Ingresar el valor de c: ")) if (a+b>c) and (a+c>b) and (b+c>a): print("Forma el triángulo") P=(a+b+c)/2 A=(P*(P-a)*(P-b)*(P-c))**(1/2) print("