Skip to content

Instantly share code, notes, and snippets.

@folivetti
Created March 6, 2017 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save folivetti/dad619e38b1f4260157115bbdd00af8f to your computer and use it in GitHub Desktop.
Save folivetti/dad619e38b1f4260157115bbdd00af8f to your computer and use it in GitHub Desktop.
import java.util.Scanner;
class Main {
public static void main(String[] args) {
int X,Y;
Scanner in = new Scanner(System.in);
X = in.nextInt();
Y = in.nextInt();
while (X != Y) {
if(X>Y){
System.out.println("Decrescente");
} else if(X<Y){
System.out.println("Crescente");
}
X = in.nextInt();
Y = in.nextInt();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment