Ah, nope - sorry.
Type: Posts; User: Scorks
Ah, nope - sorry.
Ah, okay. I fixed it a little, and it compiles. When I type in "12345678" as an example, I get 212 as my answer, which isn't correct.
My new code looks like this:
import java.util.Scanner;...
import java.util.Scanner;
public class creditcard
{
public static void main ( String args[] )
{
System.out.println("Please enter your 8-digit credit card number");
Scanner keyboard =...
Well, I have it set as an integer. If I change it to a string, how would I go about doing that?
Hey! So, I'm working on a credit card validation program, and I was wondering how I can add up specific numbers in an integer. Like for example, if the user inputs 83139638, then I need to add up...