Created
December 1, 2013 16:32
-
-
Save JorgeOlvera/7736367 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import java.util.Scanner; | |
public class elections2{ | |
public static void main (String[] args) { | |
Scanner input = new Scanner(System.in); | |
char candidate; | |
System.out.println("Please introduce your candidate. Introduce a character "); | |
candidate = input.nextLine().charAt(0); | |
if (int regions >= 1 && <= 100){ | |
int[] elArray = new int[regions]; | |
System.out.println("Please introduce candidate N and region M"); | |
2 50 | |
char candidate = input.nextLine().charAt(0); | |
int regionM = input.nextLine().charAt(3)&&charAt(4) | |
System.out.println(regionM + 2) | |
} | |
else { | |
System.out.println("Please input an amount between 1 and 100") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment