compiler won't take stdio.h as a header file, please help, thanks.

,

#include<Stdio.h>
int main(void)
{
long a,b;
scanf("%d%d",&a,&b);
if(a>b)
a=a-b;
else
a=b-a;
if(a%10==9)
printf("%d",–a);
else
printf("%d",++a);
getch();
return 0;
}

Hi! You forgot the hashtag (#) in include. Cheers!

Your ‘s’ in ‘stdio’ is capital.

#include <stdio.h>//correct
#include <Stdio.h>//your S has to be in lowercase.

There are other bunch of errors in your code too. Like you declared a and b as long but used “%d” instead of “%ld” in scanf and printf. And not sure, but i think that getch() can land you another compilation error, if it does then try removing it.

alright thanks! thanks a lot :smiley:

You’re welcome dear ^^

//