In class, Roo goes up to the whiteboard and draws a circle. On the circle, he plots N points. His friend Voo wants to connect all the points with lines, but the marker is running out of ink and he doesn't know if he can! The marker has i millilitres of ink remaining and drawing each line takes x amount of ink out of the marker. If he can connect all the points, print "yes" and how much ink he used. If not, print "no" and how much more ink he needs to draw all the lines. Remember that each point on the circle must be connected to every other point (don't over count though!!!) Source: (https://www.codingame.com)[https://www.codingame.com]
An int N which represents the number of points on the circle, an int i which represents the number of millilitres of ink in the marker, and an int x of millilitres of ink it takes to draw each line.
If he drew all the lines, the statement "yes" followed by how much ink he used. Otherwise, the statement "no" followed by how much more ink he needed t