so this is what i came up with i think it will work.
public static void Long(Long n){
System.out.prinln(n % 10);
if(n / 10 !=0)
reverse(n/10);
}
Type: Posts; User: rhoruns
so this is what i came up with i think it will work.
public static void Long(Long n){
System.out.prinln(n % 10);
if(n / 10 !=0)
reverse(n/10);
}
Hello, im new the forums and was wondering if you could help me with a problem I have to do for my Comp Sci class.
The question is:
Write a function called reverse that takes a long integer...