immagino sia ad uso scolastico?
codice:int x = 122; //int x = 121; int temp = x; int y = 11; while (temp > 0) { temp -= y; } System.out.println(x+" "+(temp < 0 ? "non " : "")+"è multiplo di "+y);
immagino sia ad uso scolastico?
codice:int x = 122; //int x = 121; int temp = x; int y = 11; while (temp > 0) { temp -= y; } System.out.println(x+" "+(temp < 0 ? "non " : "")+"è multiplo di "+y);
<´¯)(¯`¤._)(¯`»ANDREA«´¯)(_.¤´¯)(¯`>
"The answer to your question is: welcome to tomorrow"