+ 5
In 7th line remove space after %d ("%d",&a); It waits for space so that it asking next input before print statement
27th Mar 2022, 6:03 AM
Azhagesanヾ(✿)
Azhagesanヾ(✿) - avatar
+ 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.
27th Mar 2022, 5:34 AM
HungryTradie
HungryTradie - avatar
+ 1
Laukesh singh it works fine here. what compiler you use
27th Mar 2022, 5:57 AM
Azhagesanヾ(✿)
Azhagesanヾ(✿) - avatar
+ 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);
27th Mar 2022, 6:20 AM
A͢J
A͢J - avatar