If Else Conditional Statements in C | Tutorial for Beginners in Hindi
Source code for this Tutorial
#include <stdio.h> #include <stdlib.h> int main() { int age; printf("Please enter your age\n"); scanf("%d",&age); if( age >= 18 ){ printf("You are adult! So please get in to the dance club\n"); }else if( age >= 6 ){ printf("You should go to school\n"); }else{ printf("You are a kid. So go Home\n"); } printf("Programming is fun"); return 0; }