[ create a new paste ] login | about

Link: http://codepad.org/8Rh5laje    [ raw code | output | fork ]

C, pasted on Apr 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include<stdio.h>
void main()
{
    int age=24, income=1000;
    if(age>=18)
    {
        if(income<5000)
            printf("You are eligible to vote and are exempted from paying tax.");
        else
            printf("You are eligible to vote.");
    }
    else
        printf("You are not eligible to vote.");
}


Output:
1
You are eligible to vote and are exempted from paying tax.


Create a new paste based on this one


Comments: