Java Program to Find the Sum of All Digits of a Number

preview_player
Показать описание
In this Java Video Tutorial you will learn How to Write a Program to Find the Sum of All Digits of a Number entered by the user.

Here we ask the user to enter a number and then we separate each digits from that number, find the sum and display that to the screen.

This program can help a beginner in Computer Programming to understand how to construct the logic, How to use loops effectively.

our Social Media Pages

Our Website

#JavaProgramming #ExampleProgram
Рекомендации по теме
Комментарии
Автор

explained very clearly!!!! I wish you were my computer teacher in my Our teacher explains in a very CONFUSING WAY! TY!!!!

IShotMyPants
Автор

thank you for making it simple and clear

VarshaSangaranarayana
Автор

Thank you for the amazing explanation!

Dokkaebi
Автор

bro i'm thinking how to solve this for 3 days thank you very much! love you <3

ezekiellucena
Автор

Thank you so much, you saved my homework!!

라면먹고싶다-dw
Автор

Thanke you so much your explination is amazing

shinebright
Автор

how can we do this with for loop? as we have to mention the initial value and then increment or decrement too

paramgandhi
Автор

okay now why we initialize sum variable as 0.. ik im so smart but explain pls-

tanyrakig
Автор

This is not printing like 1+2+3+4+5=15, It's printing only the Answer 15

deekshithareddy