Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.48 KB | None | 0 0
  1. import java.io.BufferedReader;
  2. import java.io.IOException;
  3. import java.io.InputStreamReader;
  4.  
  5.  
  6. public class Solution {
  7.     public static void main(String[] args) throws IOException {
  8.         BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  9.         String read = br.readLine();
  10.         String [] parsed = read.split(" ");
  11.         int proizvod = 1;
  12.         for(int i = 0; i<parsed.length;i++) {
  13.             proizvod*=Integer.parseInt(parsed[i]);
  14.         }
  15.         System.out.println(proizvod);
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement