Computer Science, asked by soumili242007, 3 days ago

WAP to enter 4-digit number and display the sum of the first two digits and the last two digits of the given number. [Example: 1234,Output: 12+34=46]​

Answers

Answered by sakshi1158
1

Answer:

Input : n = 687 Output : 21 Input : n = 12 Output : 3 ... General Algorithm for sum of digits in a given number: ... So on the First call it will have the last digit. As we

Similar questions