- 3
Java
Number of your credit card have 26 number. write a program that can read number card and then show it like this: xx xxxx xxxx xxxx xxxx xxxx xxxx
1 Answer
+ 5
i dont want to do it all for you so ill let you figure the rest out rember that you have 26 digits so you will need a "hint" bigInterger
int c, b, a = 12341234;
b = Integer.toString(a).length();
for(c = 0; c<b;++c)
{
System.out.print("X");
if(c==3||c==7){System.out.print(" ");
}}