if else Statement in C

An if statement can be followed by an optional else statement, which executes when the Boolean expression is false.

Source Code

//if else statement
int main()
    char name[10];
    int age;
    printf("\nEnter Your Name : ");
    printf("\nEnter The Age : ");
        printf("\n %s  age is %d Eligible For Vote",name,age);
        printf("\n %s  age is %d Not Eligible For Vote",name,age);
    return 0;
To download raw file Click Here

List of Programs

Sample Programs

Switch Case in C

Conditional Operators in C

Goto Statement in C

While Loop Example Programs

Looping Statements in C

For Loop Example Programs

Array Examples in C

One Dimensional Array

Two Dimensional Array in C

String Example Programs in C

Functions Example Programs in C

Learn All in Tamil © Designed & Developed By Tutor Joes