Está en la página 1de 1

EJERCICIO 5

Algoritmo potencia_circuito

Escribir "ingrese la corriente I los valores de N1, N2,N3, N4"

DEFINIR I, N1, N2, N3, N4 Como Real

Leer I, N1, N2, N3, N4

P1<-(I*2)*N1

P2<-(I*2)*N2

P3<-(I*2)*N3

P4<-(I*2)*N4

PT<-P1+P2+P3+P4

Escribir "la potencia de los bombillos 1,2,3 y 4 del circuito es: P1,P2,P3,P4"

Escribir "la potencia total de la fuente es: pt"

FinAlgoritmo

También podría gustarte