In: Computer Science
#include <stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
void SmallNumbers()
{
    int f=0;
    while(f==0)
    {
        // take input of number from user
        int n;
        printf("Enter a value: ");
        scanf("%d",&n);
        // if number is greater than 0 and smaller than 25 then print it
        if(n>=0 && n<25)
            printf("The entered number is %d \n\n",n);
        // if number is smaller than 0 then end the program
        else if(n<0)
        {
            printf("Program ends\n");
            f=1;
        }
    }
    return;
}
int main()
{
    SmallNumbers();
    return 0;
}


PLEASE LIKE THE SOLUTION :))
IF YOU HAVE ANY DOUBTS PLEASE MENTION IN THE COMMENT