Program to demonstrate a simple if statement in C

Program to demonstrate a simple if statement in C 


#include <stdio.h>
#include <conio.h>
void main() {
            int num; clrscr();
            printf("Enter the number : ");
            scanf("%d", &num);
            if(num<10) {
                        printf("\nThe number is less than 10");
            }
            getch();
}


Post a Comment