0
A program to find distance between two point ❓
2 odpowiedzi
+ 1
Actually scanf does work in SoloLearn C++. The issue is how the app decides to prompt for input. It can be tricked into working as it wants to see a cin input. Add this line to force the prompt:
#define dummy cin >>
0
What exactly is your question? If it is why the input doesn't work, that is because the Sololearn C++ compiler doesn't support input via scanf(). Make a C program instead, there it will just work fine.