Little help pls

Status
Not open for further replies.

sleyk

New Member
I need someone to do this using java or C


I just purchased a cd pack containing recharge vouchers. Each recharge voucher has 8 digits. Your task is to write a program to input a list of all the vouchers and output the sum of all digits in the vouchers.

Sample Input

00000001
10000002
20000003

Sample output
9
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…