Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

Back
Top