Skip to content
Open
Show file tree
Hide file tree
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
Binary file removed bin/App.class
Binary file not shown.
60 changes: 60 additions & 0 deletions bin/Task2.class
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// Source code is decompiled from a .class file using FernFlower decompiler.
import java.util.Scanner;

public class Task2 {
public Task2() {
}

public static void main(String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("enter two integers to find the maximum one: ");
int x = input.nextInt();
int y = input.nextInt();
if (x > y) {
System.out.println("" + x + " is greater than " + y);
} else if (y > x) {
System.out.println("" + y + " is greater than " + x);
} else {
System.out.println("" + y + " and " + x + " are equals");
}

System.out.println();
input.close();
printAsciiArt();
}

public static void printAsciiArt() {
String[] string1 = new String[]{" ### # # # ## #", " # # # # # # # #", " ### ### # # # # #", " # # # # # # # #", " ### # # ### ## #"};
String[] string2 = new String[]{" #### ## # # ## # # # ##", " # # # # # # # # ## # # ", " ### # # # # # # # # ## # ##", " # # # # # # # # # ## # #", " # ## ### ## # # # ##"};
String[] string3 = new String[]{" ## # # #", " # # # # # #", " # # ### #", " # # # # #", " ## # # #"};
String[] var6 = string1;
int var5 = string1.length;

String c;
int var4;
for(var4 = 0; var4 < var5; ++var4) {
c = var6[var4];
System.out.print(c + "\n");
}

System.out.println();
var6 = string2;
var5 = string2.length;

for(var4 = 0; var4 < var5; ++var4) {
c = var6[var4];
System.out.print(c + "\n");
}

System.out.println();
var6 = string3;
var5 = string3.length;

for(var4 = 0; var4 < var5; ++var4) {
c = var6[var4];
System.out.print(c + "\n");
}

System.out.println();
}
}
5 changes: 0 additions & 5 deletions src/App.java

This file was deleted.