subractign 48 from the character representation of anumber gives you the numerical value of it for example, '1'-48 = 1 if that makes sense
Chris
Type: Posts; User: Freaky Chris
subractign 48 from the character representation of anumber gives you the numerical value of it for example, '1'-48 = 1 if that makes sense
Chris
i was guessing it was a challenege set, where they cannot use mod to determine it
import java.util.Scanner;
public class DivideBy11 {
public static void main(String[] args){
int inputNumber;
System.out.println("Enter a positive number: ");
while((inputNumber =...