alguien sabe como pasar este algoritmo de metodo congruenecial a codigo en java

Iniciado por Shannon, 10 Marzo 2019, 02:28 AM

0 Miembros y 1 Visitante están viendo este tema.

Shannon

(netbeans)

Algoritmo MetodoCongruencial
Definir x0,a,b,m,xN,p,Ec Como Entero
Definir u1 Como Real
Escribir "teclea el valor de la semilla"
Leer x0
Escribir "teclea el valor de a"
Leer a
Escribir "teclea el valor de b"
Leer b
Escribir "teclea el valor de m"
Leer m

p=a*x0
Ec=p+b
xN=Ec mod m
u1=xN/M
Escribir 'xN= ', u1
FinAlgoritmo
His name will live, brother
No, I got-, I feel hella shitty because it's like, I '
Like, if I would have known it was so cool
And it's like, I ', if I would have watched interviews sooner, bro', we were so alike
It's unfortunate because it's like, me, when people die, that's when you're there, you know?
'Cause your remorse kinda makes you check' em out