122,510 views
19 votes
19 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.

User Emad Baqeri
by
2.9k points

1 Answer

10 votes
10 votes

Answer:

sum=number+number1

Step-by-step explanation:

User Rio
by
2.6k points