0

Adding strings and integer

Is it possible to add a string to an integer

10th Jun 2022, 8:02 AM
Tim Oyedepo
Tim Oyedepo - avatar
4 odpowiedzi
+ 3
Timilehin Mayokun "abc" + 12 = ?
10th Jun 2022, 8:21 AM
A͢J
A͢J - avatar
+ 2
Timilehin Mayokun Can you give an example if what you are trying to achieve. All letters have an underlying number, so it is possible to take the number associated with a letter, add a number to it, then convert it back to a letter. Therefore a + 3 = d That's how Caesar cypher works
10th Jun 2022, 9:36 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
For what you are trying this? In which language? Direct way is language dependent .. "ABC"+12 is valid in java but error in python..
10th Jun 2022, 10:21 AM
Jayakrishna 🇮🇳