My issue
You are given the age of a person stored in a variable age. Your task is to determine if this person is eligible to vote.
Output 1 if the person can vote, and 0 if the person cannot vote. Assume that the minimum voting age is 18, i.e., a person’s age must be greater than or equal to 18 to be eligible to vote.
My code
#include <stdio.h>
int main() {
int age = 20;
// Update the code below this line
}
Learning course: Programming and Problem solving using C
Problem Link: https://www.codechef.com/learn/course/ciet-programming-c/CIETPC08/problems/PPSC30