Update input method for exponent and prime

This commit is contained in:
Bill Buchanan
2026-01-15 17:22:49 +00:00
committed by GitHub
parent 25c2e22872
commit 88b5b7593f

View File

@@ -1,6 +1,7 @@
message = raw_input('Enter message: ')
e = raw_input('Enter exponent: ')
p = raw_input('Enter prime ')
e = input('Enter exponent: ')
p = input('Enter prime ')
cipher = (int(message) ** int(e)) % int(p)
print (cipher)