Output 1:
Enter total number of street lights : 1
Light 1 covers the street from X1 to Y1. Please enter the value of X and Y : 5 10
Length of street = 5
Output 2:
Enter total number of street lights : 2
Light 1 covers the street from X1 to Y1. Please enter the value of X and Y : 5 10
Light 2 covers the street from X2 to Y2. Please enter the value of X and Y : 8 12
Length of street = 7
Answers
Answered by
0
Answer:
add this all you will get the ans
Similar questions
Math,
16 hours ago
Environmental Sciences,
16 hours ago
Business Studies,
1 day ago
Social Sciences,
1 day ago
CBSE BOARD X,
8 months ago