In the program written below how i can ensure that only integer value is entered? And if character is entered the program should convert it to its ASCII equivalent and then add them and show output as number. Please help me......
#include<stdio.h>
int main(int argc, char **argv)
{
int a,b,c;
printf("enter two numbers:-");
scanf("%d %d",&a,&b);
c=a+b;
printf("addition of numbers= %d",c);
}