السلام عليكم
عندي مجموعه تدريبات ياريت حد يعطيني الحل .......
Write a switch statement that does the following:
• Increases balance by adding amount to it if the value of the character variable transCode is 'D'.
• Decreases balance by subtracting amount from it if the value of transCode is 'W'.
• Display the value of balance if the value of transCode is 'P'.
• Display "Illegal transaction" otherwise.