Problem with reading multiple integers using scanf in c

c
input
scanf

#1

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 ?


#2

printf("
Enter the durations of jobs :

“);
for(i=0; i<number; i++)
scanf(”%d", &dur*);


#3

// 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”);
scanf("%d%d",&i,&j);
k=i+j;
printf(“Sum is %d”,k);
getch();
}

// 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.


#4

#include<stdio.h>
#include<conio.h>
void main(){
int a,b;
clrscr();
printf(“enter two number”);
scanf("%d %d",&a,&b);
printf(“a=%d b=%d”,a,b);
getch();
}