Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. import java.io*;
  2. import java.util.Scanner*;
  3. public class Solution
  4. {
  5. public static void main(String[] args)
  6. {
  7. int a;
  8. int b;
  9. int a = 10;
  10. int b = 20;
  11. System.out.println("int a, int b");
  12. }
  13. Scanner scan = new Scanner(System.in);
  14. int input = new InputNextInt();
  15. if(input > a)
  16. {
  17. System.out.print("We have to print some value for the input");
  18. }
  19. else(input < a)
  20. {
  21. System.out.print("We should make some changes for the input");
  22. }
  23. else if(input > b)
  24. {
  25. System.out.println("We really want to create some variable for input");
  26. }
  27. System.out.println("Input value of b is: " + b);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement