Created
March 6, 2020 12:18
-
-
Save DmitriiPodlesnykh/414f8f930421a57882ae74fe0754fbf4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Main { | |
public static void main(String[] args) | |
{ | |
int a = 1000; | |
int b = 2; | |
int leftSideResult; | |
//leftSideResult = здесь вызываем написанный метод, который считает левую часть и возвращает результат | |
int rightSideResult; | |
//rightSideResult = здесь вызываем написанный метод, который считает правую часть и возвращает результат | |
System.out.println("left side = "); | |
System.out.println(leftSideResult); | |
System.out.println("right side = "); | |
System.out.println(rightSideResult); | |
//вот здесь выводим на экран, true ЕСЛИ левая часть равна правой, иначе false | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment