ok,
this is my modify code:
public class Num7
{
public static void main(String[]args)
{
char[] ch={'1','2','3','4','5','6','7','8','9'};
int x,y,z;
for(x=ch.length;x>0;x--)
{
System.out.print(x);
}
System.out.println();
for(y=ch.length;y>0;y--)
{
System.out.print(y);
}
z=x*y;
System.out.println("\nThe sum is: "+z);
}
}
it display the values i entered on the array backward,
and that's what i want,
the problem is the value of z,
z is always 0;
i cant figure out whats the problem,
can you help?