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
-
"Why Does It Smell Like Sex?" Slutty Wife Caught With Another Man - Lucky Anne - TouchMyWi
17 min ago
-
scafsdfasd
38 min ago
-
dfgdfg
41 min ago
-
MIA KHALIFA - Mia Khalifa Goes To The Library To Secretly Fuck Her Professor To Keep Her Grades A+
47 min ago
-
بونانزا الحدود: توقّع عدد الحدود التي ستُسجَّل في المباراة واربح الكثير في لعبة بونانزا الحدود.
54 min ago
-
Time Stop - What would you do if you could? Merida Sat gets fucked
1 hour ago
-
sdfssddfsd
1 hour ago
-
Adult Telegram Channels
1 hour ago
-
Last sex with my cute stepsister before her vacation. Torn tights
1 hour ago
-
BLACKED Barbie, Stefany And Zuzu Have 3-BBC Pool-Side Orgy
2 hours ago