Untitled
Never
import java.util.Scanner; public class main3 { public static void main(String[] args) { // 2.א.4 // get the input from user Scanner s = new Scanner(System.in); System.out.println("please enter 3 digit number"); int num = s.nextInt(); boolean isEqul =false; int temp = num; //loop that checks if == and devid the num by 10 to get the next digit- return boolean for (int i = 0;i<3;i++){ if (temp%10==temp/10){ isEqul=true; } temp=temp/10; } // usung a string var to get the condition nice and clean in print String printRes =isEqul ? "all digits the same" : "the digits are difrrent"; System.out.println(printRes); } }
Raw Text
-
🌴cr0t di wajah | cum
4 min ago
-
💢Look like now and going
5 min ago
-
🚫JKHSAD6546GHSD
6 min ago
-
Hello
7 min ago
-
Jacobs and Jacobs Injury Lawyers, Car Accident, Wrongful Death, Brain Injury
8 min ago
-
PinUp Babe Ariadna Passionately Riding Her Lover's Hard Cock In Hot Fetish Sex - VIP SEX VAULT
16 min ago
-
Hiiiii
30 min ago
-
Aunt Judy's - Petite Blonde MILF Nadine Masturbates for You in Sexy Black Stockings
51 min ago
-
csx rfvfgv
54 min ago
-
FitSpresso
1 hour ago