Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class hom3 {
- public static void main(String[] args) {
- Scanner sc = new Scanner(System.in);
- System.out.println("Podaj liczbe produktów: ");
- int quantity = sc.nextInt();
- if (quantity ==0){
- System.out.println("Podaj liczbe produktów: ");
- int quantity1 = sc.nextInt();
- }
- int quantity=quantity1;
- System.out.println(quantity);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement