@DavidMcConnachi/

CyanShrillFirm

Java

No description

fork
loading
Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Main {
  public void voter_info(name, int age int year)
    voting_year = year - (age - 18)
    System.print(name + " has been eligible to vote since " + voting_year ".");
  }

  public static void main(String[] args) {
    name = 'Sandra';
    name = 'Javier';
    name3 = 'Padma';

    int age1 = 63;
    int age3 = 53;
    int age2 = 26;

    int current_year = 2017

    voter_info(name current_year, age);
    voter_info(name2, age, current_year);
    voter_info{name3, age, current_year};
  }
}