Suppose you want to go from Dhaka to Chittagong, then to Cox’s Bazar. You can
travel from Dhaka to Chittagong by bus or by train. From Chittagong, you can take a bus to
Cox’s Bazar. The ticket price for bus and train are given below –
Dhaka to Ctg Bus = 1200/-
Dhaka to Ctg Train = 1000/-
Ctg to Cox’s Bazar Bus = 250/-
Now choose the least expensive method for you to travel by writing a program in C.