Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions task05/src/com/example/task05/Task05.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@
public class Task05 {

public static String solution(int x) {

// TODO напишите здесь свою корректную реализацию этого метода, вместо сеществующей

return "FALSE";
while (x != 0) {
if ((x % 10) % 2 == 1)
return "FALSE";
x /= 10;
}
return "TRUE";
}

public static void main(String[] args) {
// Здесь вы можете вручную протестировать ваше решение, вызывая реализуемый метод и смотря результат
// например вот так:
/*
String result = solution(1234);
String result = solution(264);
System.out.println(result);
*/
}

}