Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io*;
- import java.util.Scanner*;
- public class Solution
- {
- public static void main(String[] args)
- {
- int a;
- int b;
- int a = 10;
- int b = 20;
- System.out.println("int a, int b");
- }
- Scanner scan = new Scanner(System.in);
- int input = new InputNextInt();
- if(input > a)
- {
- System.out.print("We have to print some value for the input");
- }
- else(input < a)
- {
- System.out.print("We should make some changes for the input");
- }
- else if(input > b)
- {
- System.out.println("We really want to create some variable for input");
- }
- System.out.println("Input value of b is: " + b);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement