(BEGINNER)
problem:
i need a program that reads a 4 digit integer and adds all the digits in the integer. example: input=1234, output==10
nix_xin 0 Newbie Poster
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
nix_xin 0 Newbie Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
tux4life 2,072 Postaholic
nix_xin 0 Newbie Poster
tux4life 2,072 Postaholic
nix_xin 0 Newbie Poster
nix_xin 0 Newbie Poster
tux4life 2,072 Postaholic
nix_xin 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.