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
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