Beginner Friendly · Hands-on · Free

If Statement in C Tamil - linto.in

If Statement in tamil ஒரு condition-ஐ அடிப்படையாக கொண்டு செயல்படுவது. இதில் condition true-ஆகா இருந்தால் மட்டுமே if block statements run-ஆகும். false-ஆகா இருந்தால் skip செய்து விடும். if block means if(){....}

5 min read Updated Jan 09, 2026

If Statement in C Program

If Statement என்பது ஒரு condition-ஐ அடிப்படையாக கொண்டு செயல்படுவது. இதில் condition true-ஆகா இருந்தால் மட்டுமே if block statements run-ஆகும். false-ஆகா இருந்தால் skip செய்து விடும். if block means if(){....}

Syntax for if statement

if(condition){
    statement1;
    statement2;
    ......
    ......
}

Example for if Statement

#include<stdio.h>
#include<conio.h>
void main(){
    int ram_age=19;
    int yam_age=17;

    if(ram_age>=18){	//condition is true
        printf("Ram is eligible for voting.");
    }

    if(yam_age>=18){	//condition is false
        printf("Yam is eligible for voting.");
    }

    getch();
}

Output

Ram is eligible for voting.

இது பற்றிய தங்களின் கருத்துகளை இங்கே பதிவிடுங்கள் . இது பயனுள்ளதாக விரும்பினால் மற்றவர்களுக்கும் இதை share செய்யுங்கள்.
Muthukumar P 4th November,2024 12:59 pm
It is very simple especially for those who struggle to speak English.