Advertisement
Josif_tepe

Untitled

Oct 23rd, 2021
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.36 KB | None | 0 0
  1. import java.util.Scanner;
  2.  
  3. public class Pocetok {
  4.     public static void main(String[] args) {
  5.         Scanner scanner = new Scanner(System.in);
  6.         int a, b;
  7.         a = scanner.nextInt();
  8.         b = scanner.nextInt();
  9.         System.out.println(a + b); // ova ke gi sobere a i b
  10.         System.out.println(a + " " + b); // ke ispecati a b
  11.     }
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement