Jump to content

Convert .java to .php - please help me urgently


Recommended Posts

import java.util.Scanner;
public class bijele {
    public static void main (String[] args) {
        Scanner in = new Scanner(System.in);
        int[] neededPieces = {1,1,2,2,2,8};
        String[] currentPieces = in.nextLine().split(" ");

        for (int i = 0; i < 6; i++) {
            neededPieces[i] -= Integer.parseInt(currentPieces[i]);
            System.out.print("" + neededPieces[i] + " ");
        }
    }
}

 

Link to post
Share on other sites
  • Barand locked this topic
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.