how to strict the user to just enter a number when the programme ask about the input or just how to apply numeric input on a entry can anyone help me out.
as a exmpale:
#include "stdio.h"
#include "conio.h"
void main()
{
int x;
printf("Enter a numeric value:");
scanf("%d",&x);
if(..........) // here i supose to write the if statement
}