+ 1
Where to enter the value of integers a and b in c programming language to get the sum
8 Réponses
+ 4
Dev Pratap Singh , i did a try with your code - and it works as expected. maybe you have some trouble with the input in playground.
to get both of your requested inputs, the values have to be entered, each in a separate line, in the input window. then press submit.
+ 1
Where's the code?
+ 1
See my profile
+ 1
Dev Pratap Singh you are asking for help. Try and make it as easy as possible for anyone to help you. Copy the code's link and paste it in the description here.
+ 1
#include <stdio.h>
int main()
{
int a , b;
printf("Enter number a");
scanf ("%d" , &a);
printf ("Enter number b");
scanf ("%d" , &b);
printf ("The sum is %d" , a+b);
return 0;
}
+ 1
Please tell me guys
+ 1
Thats good right there. Open the code, hit RUN, type 2 numbers, each on a seperate line in the input box, then hit SUBMIT.
Sololearns multiple input is not interactive, meaning you need to supply all inputs at once
0
Ok