JavaScript Program to Find Sum of Digits of a Number

preview_player
Показать описание
Javascript Program to Find Sum of Digits of a Number
Write a C program to input a number and calculate sum of digits using for loop. How to find sum of digits of a number in C program. Logic to find sum of digits of a given number in C programming.

Example
Input

Input any number: 1234

Output
Sum of digits: 10

Required knowledge
Basic JavaScript programming, While loop

Thank's For Watching this video
Like, Share, Subscribe
Рекомендации по теме
Комментарии
Автор

Write a JavaScript program to sum the multiples of 3 and 5 under 1000.

PlayDesk
join shbcf.ru