Write an algorithm to find the encrypted
data string
Input
The first line of the input consists of an
integer - key, representing the key value
for the encryption.
The second line consists of a string -
data Str, representing the data string to
be encrypted
Output
Print a string representing the encrypted
data string
Constraints
0 < len s 1000, len is the length of the
given data string data Str
o s key s 100
Answers
Answered by
7
Explanation:
after adding 3 in the asci value of the characters in the string the encrypted strings becomes Dvg
Answered by
39
Language used: Python Programming
Program:
n=int(input())
string = input()
encryptedstring=""
for i in string:
encryptedstring = encryptdstring + chrr( ord(i)+ n)
#erase one r in chrr
print(encryptedstring)
Input:
3
as3gAsd
Output:
dv6jDvg
Learn more:
Write a Python function sumsquare(l) that takes a nonempty list of integers and returns a list [odd,even], where odd is the sum of squares all the odd numbers in l and even is the sum of squares of all the even numbers in l.
brainly.in/question/15473120
Python program to find absolute difference between the odd and even numbers in the inputted number.
brainly.in/question/11611140
Similar questions
Biology,
2 months ago
English,
2 months ago
English,
4 months ago
Computer Science,
10 months ago
Math,
10 months ago