Problem with reading multiple integers using scanf in c


when i write code in c and try to take 2 inputs using scanf like scanf("%d%d",&a,&b) , the input of b is skipped . why is that and what can i do to correct it ?

printf("\nEnter the durations of jobs :\n\n");
for(i=0; i<number; i++)
scanf("%d", &dur[i]);

// program for the summation of 2 integers taking all inputs at a time.
#include stdio.h
#include conio.h
void main()
int i,j,k;
printf(“enter two integers”);
printf(“Sum is %d”,k);

// I never face this kind of problem. In my above program i have take two inputs at a time i.e. values of i & j.
//You can send me your program to get it solve.

void main(){
int a,b;
printf(“enter two number”);
scanf("%d %d",&a,&b);
printf(“a=%d b=%d”,a,b);