Default Avatar

tymme

tymme

About

Username
tymme
Joined
Visits
0
Last Active
Roles
Member

Comments

  • I'd take the input as string, convert it to an array with toCharArray, then if char 1 = 1, total = total + 8, if char 2 = 1, total = total + 4, etc. I'd also hope your teacher doesn't search and see you've asked for all your homework answers here…
  • I'd take the input as string, convert it to an array with toCharArray, then if char 1 = 1, total = total + 8, if char 2 = 1, total = total + 4, etc. I'd also hope your teacher doesn't search and see you've asked for all your homework answers here…