Skip to content

Instantly share code, notes, and snippets.

import java.io.StreamCorruptedException;
import java.util.Scanner;
public class Program4 {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int n = input.nextInt();
input.nextLine();