filmov
tv
JavaScript Program to Find Sum of First and Last Digit of Any Number

Показать описание
Write a JavaScript program to input a number and find sum of first and last digit of the number using for loop. How to find sum of first and last digit of a number in JavaScript programming using loop. Logic to find sum of first and last digit of a number without using loop in JavaScript program.
Example
Input
Input number: 12345
Output
Sum of first and last digit: 6
Required knowledge
Basic JavaScript programming, While loop, For loop
Thank's For Watching This Video
Like and Share and Subscribe
Example
Input
Input number: 12345
Output
Sum of first and last digit: 6
Required knowledge
Basic JavaScript programming, While loop, For loop
Thank's For Watching This Video
Like and Share and Subscribe