Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5
Interactive user input isn't supported in Code Playground, I got infinite loop trying to run that code. Line 17 needs to check for input read failure. if(1 > scanf("%d",&choice)) break; // (while(1))
6th Feb 2019, 2:37 AM
Ipang