0
Why the output is like this?
#include <stdio.h> int main() { int a,b ; scanf("%d",&a); scanf("%d",&b); int c= a+b ; printf("%d \n",c); } When I run this code it asked me to give it input. There are two scan function but the compiler asked me for only one. And when i give an integer input, it runs to something like this "32833".. Why this is happening?
1 Answer
+ 3
Because of the way SoloLearn handles input, you have to give all the inputs at once in separate lines. SoloLearn will not ask you for input more than once. See here how to give input
https://code.sololearn.com/WhiNb9BkJUVC/?ref=app



