Language C
Description It accepts to read the age of a Rwandan citzen, and it shows whether He/She is allowed to vote or not.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>
#include <stdlib.h>

int main (void)
{
    int age;
    printf ("Enter the value of age: ");
    scanf ("%d", &age);
    (void) getchar ();
    if(age<18)
        printf ("He/She is not allowed to vote.\n");
    else
        printf ("He/She is allowed to vote.\n");
    putchar ('\n');
    system ("pause");
    return EXIT_SUCCESS;
}