Advertisement
_MuradPro_

Targil 15

Sep 24th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Why {
  4.  
  5. public static void main(String[] args) {
  6.  
  7. int num1;
  8. Scanner in= new Scanner(System.in);
  9. System.out.println("Enter the number " );
  10. num1 = in.nextInt();
  11. int num2 = 2*num1;
  12. int num3 = 3*num2;
  13. System.out.println("The add of numbers is: ");
  14. System.out.print(num1 + ", " );
  15. System.out.print(num2 + ", " );
  16. System.out.print(num3);
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement