java

[Solved] Street Lights with Java

[Solved] Street Lights with Java

One of the streets in your city has a total of L street lights. Each light i covers the street from Xi to Yi distance. Find the length of street covered with light. Input Specification: input1: L, denoting the number…