SlideShare a Scribd company logo
#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
int a,b,r = 0;
cin>>a;
while(a>0)
{
b = a%10;
r = r + b;
a = a/10;
}
cout<<r<<endl;
getch();
}

More Related Content

DOCX
Tugas Program C++
PPTX
C++ hello world
PDF
Git avançado
TXT
For loop square
TXT
Problemas de Arreglos en c++
Tugas Program C++
C++ hello world
Git avançado
For loop square
Problemas de Arreglos en c++

What's hot (20)

PDF
C++ Programming - 3rd Study
PDF
JavaScript - Agora nervoso
PDF
All I know about rsc.io/c2go
DOCX
Oop lab report
PDF
2016 gunma.web games-and-asm.js
PDF
Introduction to Go for Java Programmers
PDF
20151224-games
PDF
Perl6 operators and metaoperators
PPTX
Scripting ppt
PPTX
Php 7.x 8.0 and hhvm and
PDF
Javascript - The basics
PDF
JavaSE7 Launch Event: Java7xGroovy
PDF
Let's Go-lang
PPTX
Extending php (7), the basics
PPTX
Loop C# - Lec7 (Workshop on C# Programming: Learn to Build)
DOCX
basic programs in C++
PPTX
String C# - Lec10 (Workshop on C# Programming: Learn to Build)
PDF
completion_proc and history
C++ Programming - 3rd Study
JavaScript - Agora nervoso
All I know about rsc.io/c2go
Oop lab report
2016 gunma.web games-and-asm.js
Introduction to Go for Java Programmers
20151224-games
Perl6 operators and metaoperators
Scripting ppt
Php 7.x 8.0 and hhvm and
Javascript - The basics
JavaSE7 Launch Event: Java7xGroovy
Let's Go-lang
Extending php (7), the basics
Loop C# - Lec7 (Workshop on C# Programming: Learn to Build)
basic programs in C++
String C# - Lec10 (Workshop on C# Programming: Learn to Build)
completion_proc and history
Ad

Viewers also liked (10)

PDF
Jci wpg november 2012 calendar
PPTX
Alex correa
PPTX
Presentation1
PDF
Siraj Letter
DOC
PSResume Dec14
PPTX
El viaje a barranca
PDF
Rural Hunger Solutions
DOCX
Minit mesyuarat ajk(1) post khimat sosial
PPTX
At the fron­tier of Big Data and Brain Health
Jci wpg november 2012 calendar
Alex correa
Presentation1
Siraj Letter
PSResume Dec14
El viaje a barranca
Rural Hunger Solutions
Minit mesyuarat ajk(1) post khimat sosial
At the fron­tier of Big Data and Brain Health
Ad

Recently uploaded (20)

PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Institutional Correction lecture only . . .
PPTX
Cell Structure & Organelles in detailed.
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
RMMM.pdf make it easy to upload and study
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Classroom Observation Tools for Teachers
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
Supply Chain Operations Speaking Notes -ICLT Program
Institutional Correction lecture only . . .
Cell Structure & Organelles in detailed.
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
TR - Agricultural Crops Production NC III.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
RMMM.pdf make it easy to upload and study
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Abdominal Access Techniques with Prof. Dr. R K Mishra
O7-L3 Supply Chain Operations - ICLT Program
Microbial disease of the cardiovascular and lymphatic systems
STATICS OF THE RIGID BODIES Hibbelers.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Classroom Observation Tools for Teachers

Sol8