hi rzzz : i think you means you cant put character to array; pls see followed
Code removed.
Type: Posts; User: Billzhang
hi rzzz : i think you means you cant put character to array; pls see followed
Code removed.
thank you for you reply. i have fingerout my problem. i used ++(chr[i-1]), then ,when programs runs, chr0-> chr1, and it changged itslef also.
i am amateur. i try to use if statement, but i can't.
Soooo nice if any one could help.
ok, i have a type mistake, should be
int i
and i assign as 1 in for loop.
char[]chr=new char[21];
int i=0; chr[0]='A';
for(i=1; i<20 && chr[i]!='I' && chr[i]!='O' && chr[i]!='J';i++){
chr[i]=++(chr[i-1]);}
System.out.println(Arrays.toString(chr));
I want to...
I have repost the code.
becasue prime no. is a no. aliquant by a no. among 2 and itself.
i want use a for statement, and use A to devide by (2,A), if A divisible by any no. in (2,a), A is not a prime.
int i,a,c;...