+ 5
In 7th line remove space after %d
("%d",&a);
It waits for space so that it asking next input before print statement
+ 2
We can try that much easier if you copy+paste it into a SoloLearn "code bit". Please edit your original post to include that.
+ 1
Laukesh singh it works fine here. what compiler you use
+ 1
Laukesh singh
I think you are printing value of b before your comments. Print like this:
printf("Enter value of b \n");
scanf("%d", &b);
printf ("%d\n", b);