43.9k views
7 votes
Write a program that asks the user for a combination of numbers as a string and a shift value n. The program should then add the shift value to each character of the combination entered by the user. For example, if the user enters 123 and n=2, the program should print 345. The input to this program has been preprogrammed for you. You have to use the input and implement the algorithm.

1 Answer

9 votes

Answer:

sum=number+number1

Step-by-step explanation:

User Solomon Raja
by
3.7k points