C++ Program to Find the Sum of All Digits of a Number

preview_player
Показать описание
In this C++ 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

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

I was crying that I am gonna fail. BUT ThankGod I finally found your channel.
It was helpful and the way you explained everything is so good
May God Bless You

maheenasif
Автор

good teaching perfectly - all just telling this this.... but u write and shown . really thanks

specialstreetfood
Автор

Thanks a lot i noticed that this program is very much similar to that in which we reverse a no

factzfromme
Автор

I've Learn lot of Analysis Hehe thanks🧠

ezen_official
Автор

Thank you very much. You really helped me ALOT. 🧡

pandarian
Автор

What a explanation it was! Thank you Sir:)

thevaishnavikathe
Автор

Thanks a lot for this amazing video! It helped me a lot... I liked and subbed :D

daiwikdhar
Автор

How about the input is 346 567 the output should be:
Sum of the first 3 digit: 13 (3+4+6)
Sum of the last 3 digit: 18(5+6+7) ?

bunleng
Автор

Very good explanation thank u for sharing

anshultiwari
Автор

but what if the number is 405, the loop will stop at 0.right?

adarsh
Автор

how to we make it work repeatedly until we get a single digit

nomidkhan
Автор

Can you help me
I want to create team by given player each team have N player how to do it (For example Total player =100, N=4)

mdmahmudulhasan
Автор

Hello Sir can you write code to find sum of digits but it should be like this. Input 123 234 345 0. Output 6 9 12

beed
Автор

thank you my teacher i love you from my heart from east africa oromia, the country of JAWAR MOHAMMED

yomifkumsisabededa
Автор

sir my program is correct but sum is wrong ???

shiwanisingh
Автор

How to do fr negative number, ,mera bas if else me error he baki sab sahi he

sahilabhi
Автор

Credit problem from CS50. Welcome to the same problem !

VinnieDreher
Автор

Single digits bana hai esase see nhi hoga

amrendrakumarjaiswal