Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Why {
- public static void main(String[] args) {
- int num1;
- Scanner in= new Scanner(System.in);
- System.out.println("Enter the number " );
- num1 = in.nextInt();
- int num2 = 2*num1;
- int num3 = 3*num2;
- System.out.println("The add of numbers is: ");
- System.out.print(num1 + ", " );
- System.out.print(num2 + ", " );
- System.out.print(num3);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement