ASCII String – There exists a function “X” such that it accepts two input parameters A & B and whose output depends on…


Problem Statement

There exists a function “X” such that it accepts two input parameters A & B and whose output depends on the operation you decide to perform on A & B.

  • Operation 1: It accepts two integer parameters (A & B) and prints the sum of the two integers.
  • Operation 2: It accepts two string parameters and concatenates the two strings (A & B) and displays the result.
  • Operation 3: It accepts two parameters one of type entier and the autre is of type string and prints the sum of ascii characters of the string to the integer and displays the integer result.

Write a program to display the operation of X using the two string inputs provided by the user.

Related Posts

Close Bitnami banner
Bitnami