Write C++ program to find the sum of first and last digit of any number
belongs to collection: C++ Language Loop Programs with Examples
All Answers
total answers (1)
belongs to collection: C++ Language Loop Programs with Examples
total answers (1)
I have used CodeBlocks compiler for debugging purpose. But you can use any C++ programming language compiler as per your availability.
Result:
Enter any number:123456
Sum of first and last digit: 7
need an explanation for this answer? contact us directly to get an explanation for this answer