#include<stdio.h>
void main(void)
{   
    int n1,n2,r; // variables
    //this just simply add n1 and n2 and shows the result, i want it
    // to only allow numbers not alphabet
    printf("Enter the first number = ");
    scanf("%d",& n1);
    fflush(stdin);
    printf("Enter the second number = ");
    scanf("%d",& n2);
    fflush(stdin);
    r=n1+n2;
    printf("total = %d ", r);
}
as you can see my codes wont restrict anything, i want help in restricting the input of alphabets